You are here

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

File

src/Example/ExampleTokenEventSubscriber.php, line 20

Class

ExampleTokenEventSubscriber
Class ExampleTokenEventSubscriber.

Namespace

Drupal\hook_event_dispatcher\Example

Code

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