You are here

public static function AmpEventSubscriber::getSubscribedEvents in Accelerated Mobile Pages (AMP) 8.3

File

src/EventSubscriber/AmpEventSubscriber.php, line 82

Class

AmpEventSubscriber
Redirects AMP requests to ?_wrapper_format=amp if appropriate.

Namespace

Drupal\amp\EventSubscriber

Code

public static function getSubscribedEvents() {

  // Run before main_content_view_subscriber.
  $events[KernelEvents::VIEW][] = [
    'onView',
    100,
  ];
  return $events;
}