public static function ExamplePreprocessorEventSubscriber::getSubscribedEvents in Hook Event Dispatcher 8
File
- src/
Example/ ExamplePreprocessorEventSubscriber.php, line 17
Class
- ExamplePreprocessorEventSubscriber
- Class ExamplePreprocessorEventSubscriber.
Namespace
Drupal\hook_event_dispatcher\ExampleCode
public static function getSubscribedEvents() {
return [
PagePreprocessEvent::name() => 'preprocessPage',
BlockPreprocessEvent::name() => 'preprocessBlock',
];
}