You are here

public static function BigPipeTestSubscriber::getSubscribedEvents in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/big_pipe/tests/modules/big_pipe_test/src/EventSubscriber/BigPipeTestSubscriber.php \Drupal\big_pipe_test\EventSubscriber\BigPipeTestSubscriber::getSubscribedEvents()
  2. 10 core/modules/big_pipe/tests/modules/big_pipe_test/src/EventSubscriber/BigPipeTestSubscriber.php \Drupal\big_pipe_test\EventSubscriber\BigPipeTestSubscriber::getSubscribedEvents()

File

core/modules/big_pipe/tests/modules/big_pipe_test/src/EventSubscriber/BigPipeTestSubscriber.php, line 74

Class

BigPipeTestSubscriber

Namespace

Drupal\big_pipe_test\EventSubscriber

Code

public static function getSubscribedEvents() {

  // Run just before \Drupal\big_pipe\EventSubscriber\HtmlResponseBigPipeSubscriber::onRespond().
  $events[KernelEvents::RESPONSE][] = [
    'onRespondSetBigPipeDebugPlaceholderHeaders',
    -9999,
  ];

  // Run just after \Drupal\big_pipe\EventSubscriber\HtmlResponseBigPipeSubscriber::onRespond().
  $events[KernelEvents::RESPONSE][] = [
    'onRespondTriggerException',
    -10001,
  ];
  return $events;
}