function NoBigPipeRouteAlterSubscriber::getSubscribedEvents

Same name in other branches
  1. 9 core/modules/big_pipe/src/EventSubscriber/NoBigPipeRouteAlterSubscriber.php \Drupal\big_pipe\EventSubscriber\NoBigPipeRouteAlterSubscriber::getSubscribedEvents()
  2. 8.9.x core/modules/big_pipe/src/EventSubscriber/NoBigPipeRouteAlterSubscriber.php \Drupal\big_pipe\EventSubscriber\NoBigPipeRouteAlterSubscriber::getSubscribedEvents()
  3. 11.x core/modules/big_pipe/src/EventSubscriber/NoBigPipeRouteAlterSubscriber.php \Drupal\big_pipe\EventSubscriber\NoBigPipeRouteAlterSubscriber::getSubscribedEvents()

File

core/modules/big_pipe/src/EventSubscriber/NoBigPipeRouteAlterSubscriber.php, line 43

Class

NoBigPipeRouteAlterSubscriber
Sets the '_no_big_pipe' option on select routes.

Namespace

Drupal\big_pipe\EventSubscriber

Code

public static function getSubscribedEvents() : array {
    $events[RoutingEvents::ALTER][] = [
        'onRoutingRouteAlterSetNoBigPipe',
    ];
    return $events;
}

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