static function AjaxSubscriber::getSubscribedEvents

Registers the methods in this class that should be listeners.

Return value

array An array of event listener definitions.

Overrides EventSubscriberInterface::getSubscribedEvents

File

drupal/core/lib/Drupal/Core/Ajax/AjaxSubscriber.php, line 38
Contains \Drupal\Core\Ajax\AjaxSubscriber.

Class

AjaxSubscriber
Subscribes to the kernel request event to add the Ajax media type.

Namespace

Drupal\Core\Ajax

Code

static function getSubscribedEvents() {
  $events[KernelEvents::REQUEST][] = array(
    'onKernelRequest',
    50,
  );
  return $events;
}