You are here

public static function NoBigPipeRouteAlterSubscriber::getSubscribedEvents in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/big_pipe/src/EventSubscriber/NoBigPipeRouteAlterSubscriber.php \Drupal\big_pipe\EventSubscriber\NoBigPipeRouteAlterSubscriber::getSubscribedEvents()
  2. 10 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() {
  $events[RoutingEvents::ALTER][] = [
    'onRoutingRouteAlterSetNoBigPipe',
  ];
  return $events;
}