Elgg  Version master
Public Member Functions | List of all members
Elgg\Icons\MoveIconsOnOwnerChangeHandler Class Reference

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...
 

Detailed Description

Moves icons on ownership changes.

Since
4.0

Definition at line 10 of file MoveIconsOnOwnerChangeHandler.php.

Member Function Documentation

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.

Parameters
\Elgg\Event$event'update:after', 'object'|'group'
Returns
void

Definition at line 26 of file MoveIconsOnOwnerChangeHandler.php.


The documentation for this class was generated from the following file: