You are here

public static function MainContentViewSubscriber::getSubscribedEvents in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php \Drupal\Core\EventSubscriber\MainContentViewSubscriber::getSubscribedEvents()
  2. 10 core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php \Drupal\Core\EventSubscriber\MainContentViewSubscriber::getSubscribedEvents()

File

core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php, line 104

Class

MainContentViewSubscriber
View subscriber rendering main content render arrays into responses.

Namespace

Drupal\Core\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events[KernelEvents::VIEW][] = [
    'onViewRenderArray',
  ];
  return $events;
}