You are here

public static function HtmlResponsePlaceholderStrategySubscriber::getSubscribedEvents in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/EventSubscriber/HtmlResponsePlaceholderStrategySubscriber.php \Drupal\Core\EventSubscriber\HtmlResponsePlaceholderStrategySubscriber::getSubscribedEvents()

File

core/lib/Drupal/Core/EventSubscriber/HtmlResponsePlaceholderStrategySubscriber.php, line 64

Class

HtmlResponsePlaceholderStrategySubscriber
HTML response subscriber to allow for different placeholder strategies.

Namespace

Drupal\Core\EventSubscriber

Code

public static function getSubscribedEvents() {

  // Run shortly before HtmlResponseSubscriber.
  $events[KernelEvents::RESPONSE][] = [
    'onRespond',
    5,
  ];
  return $events;
}