function MainContentViewSubscriber::getSubscribedEvents

Same name in other branches
  1. 8.9.x 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()
  3. 11.x 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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.