public static function ExamplePreprocessEventSubscriber::getSubscribedEvents in Hook Event Dispatcher 8.2
Same name and namespace in other branches
- 3.x 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',
];
}