Media Module
The following events are triggered in the Media Module:
Triggered when a file was uploaded. You have access to the complete File entity.
Triggered when a file was linked to an other entity. You have access to the complete File entity as well as the linked entity.
For instance if you link a cover image to your blog post, you'll have access to the file and to the post the file was linked too.
Triggered when a file was unlinked from an entity. You have access to the imageable relation.
In this relation you have access to the file_id
, the type
, type_id
and the zone
.
Triggered when a file was created. This event has a public $file
property.
Triggered when a file was updated. This event has a public $file
property.