You are here

public static function BigPipeTestSubscriber::getSubscribedEvents in Drupal 8

Same name and namespace in other branches
  1. 9 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;
}