You are here

public static function AmpHtmlResponseSubscriber::getSubscribedEvents in Accelerated Mobile Pages (AMP) 8

Same name and namespace in other branches
  1. 8.2 src/EventSubscriber/AmpHtmlResponseSubscriber.php \Drupal\amp\EventSubscriber\AmpHtmlResponseSubscriber::getSubscribedEvents()

File

src/EventSubscriber/AmpHtmlResponseSubscriber.php, line 68
Contains \Drupal\amp\EventSubscriber\AmpHtmlResponseSubscriber.

Class

AmpHtmlResponseSubscriber
Response subscriber to handle amp HTML responses.

Namespace

Drupal\amp\EventSubscriber

Code

public static function getSubscribedEvents() {

  // We want to run this as late as possible, after the HTML has been modified by all the Response listeners
  $events[KernelEvents::RESPONSE][] = [
    'onRespond',
    -1024,
  ];
  return $events;
}