You are here

public static function ExampleEntityEventSubscribers::getSubscribedEvents in Hook Event Dispatcher 8

File

src/Example/ExampleEntityEventSubscribers.php, line 109

Class

ExampleEntityEventSubscribers
Class ExampleEntityEventSubscribers.

Namespace

Drupal\hook_event_dispatcher\Example

Code

public static function getSubscribedEvents() {
  return [
    HookEventDispatcherInterface::ENTITY_VIEW => 'alterEntityView',
    HookEventDispatcherInterface::ENTITY_PRE_SAVE => 'entityPreSave',
    HookEventDispatcherInterface::ENTITY_INSERT => 'entityInsert',
    HookEventDispatcherInterface::ENTITY_UPDATE => 'entityUpdate',
    HookEventDispatcherInterface::ENTITY_PRE_DELETE => 'entityPreDelete',
    HookEventDispatcherInterface::ENTITY_DELETE => 'entityDelete',
  ];
}