You are here

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

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

File

examples/ExampleTokenEventSubscriber.php, line 29

Class

ExampleTokenEventSubscriber
Class ExampleTokenEventSubscriber.

Namespace

Drupal\hook_event_dispatcher

Code

public static function getSubscribedEvents() : array {
  return [
    HookEventDispatcherInterface::TOKEN_REPLACEMENT => 'tokenReplacement',
    HookEventDispatcherInterface::TOKEN_INFO => 'tokenInfo',
  ];
}