Elgg
Version 6.1
|
Moves icons on ownership changes. More...
Public Member Functions | |
__invoke (\Elgg\Event $event) | |
Listen to entity ownership changes and update icon ownership by moving icons to their new owner's directory on filestore. More... | |
Moves icons on ownership changes.
Definition at line 10 of file MoveIconsOnOwnerChangeHandler.php.
Elgg\Icons\MoveIconsOnOwnerChangeHandler::__invoke | ( | \Elgg\Event | $event | ) |
Listen to entity ownership changes and update icon ownership by moving icons to their new owner's directory on filestore.
This will only transfer icons that have a custom location on filestore and are owned by the entity's owner (instead of the entity itself). Even though core icon service does not store icons in the entity's owner directory, there are plugins that do (e.g. file plugin) - this handler helps such plugins avoid ownership mismatch.
\Elgg\Event | $event | 'update:after', 'object'|'group' |
Definition at line 26 of file MoveIconsOnOwnerChangeHandler.php.