Events

Media Module


The following events are triggered in the Media Module:

FileWasUploaded

Triggered when a file was uploaded. You have access to the complete File entity.

FileWasLinked

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.

FileWasUnlinked

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.

FileWasCreated

Triggered when a file was created. This event has a public $file property.

FileWasUpdated

Triggered when a file was updated. This event has a public $file property.

Mobile Analytics