public static function ExampleTokenEventSubscriber::getSubscribedEvents in Hook Event Dispatcher 3.x
Same name and namespace in other branches
- 8.2 examples/ExampleTokenEventSubscriber.php \Drupal\hook_event_dispatcher\ExampleTokenEventSubscriber::getSubscribedEvents()
File
- examples/
ExampleTokenEventSubscriber.php, line 29
Class
- ExampleTokenEventSubscriber
- Class ExampleTokenEventSubscriber.
Namespace
Drupal\hook_event_dispatcherCode
public static function getSubscribedEvents() : array {
return [
HookEventDispatcherInterface::TOKEN_REPLACEMENT => 'tokenReplacement',
HookEventDispatcherInterface::TOKEN_INFO => 'tokenInfo',
];
}