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\ExampleCode
public static function getSubscribedEvents() {
return [
HookEventDispatcherInterface::TOKEN_REPLACEMENT => 'tokenReplacement',
HookEventDispatcherInterface::TOKEN_INFO => 'tokenInfo',
];
}