emitEvent()
emitEvent(\Ceo\Core\Traits\const $event, array $data = array()) : \Ceo\Core\Traits\Event
Emit event
Parameters
\Ceo\Core\Traits\const | $event | |
array | $data |
Provides a standard foundation upon which transformation events can be fired.
Must provide defined Event (as defined by Ceo\Core\Event) and data to be attached to event.
$content->emitEvent(\Ceo\Core\Event::UPDATE_EVENT, [extra data]);
$content->emitEvent(\Ceo\Core\Event::CREATE_EVENT, [extra data]);
Events are fired manually by Managers and not Models.