public static function ExamplePreprocessEventSubscriber::getSubscribedEvents in Hook Event Dispatcher 3.x
Same name and namespace in other branches
- 8.2 examples/ExamplePreprocessEventSubscriber.php \Drupal\hook_event_dispatcher\ExamplePreprocessEventSubscriber::getSubscribedEvents()
File
- examples/
ExamplePreprocessEventSubscriber.php, line 27
Class
- ExamplePreprocessEventSubscriber
- Class ExamplePreprocessorEventSubscriber.
Namespace
Drupal\hook_event_dispatcherCode
public static function getSubscribedEvents() : array {
return [
NodePreprocessEvent::name('article', 'full') => 'preprocessArticleFull',
PagePreprocessEvent::name() => 'preprocessPage',
BlockPreprocessEvent::name() => 'preprocessBlock',
];
}