You are here

public static function ExampleEntityExtraFieldInfoSubscribers::getSubscribedEvents in Hook Event Dispatcher 8.2

Same name and namespace in other branches
  1. 3.x examples/ExampleEntityExtraFieldInfoSubscribers.php \Drupal\hook_event_dispatcher\ExampleEntityExtraFieldInfoSubscribers::getSubscribedEvents()

File

examples/ExampleEntityExtraFieldInfoSubscribers.php, line 61

Class

ExampleEntityExtraFieldInfoSubscribers
Class ExampleEntityExtraFieldInfoSubscribers.

Namespace

Drupal\hook_event_dispatcher

Code

public static function getSubscribedEvents() : array {
  return [
    HookEventDispatcherInterface::ENTITY_EXTRA_FIELD_INFO => 'fieldInfo',
    HookEventDispatcherInterface::ENTITY_EXTRA_FIELD_INFO_ALTER => 'fieldInfoAlter',
  ];
}