You are here

public static function ExamplePreprocessEventSubscriber::getSubscribedEvents in Hook Event Dispatcher 8.2

Same name and namespace in other branches
  1. 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_dispatcher

Code

public static function getSubscribedEvents() : array {
  return [
    NodePreprocessEvent::name('article', 'full') => 'preprocessArticleFull',
    PagePreprocessEvent::name() => 'preprocessPage',
    BlockPreprocessEvent::name() => 'preprocessBlock',
  ];
}