You are here

public static function FormAjaxSubscriber::getSubscribedEvents in Drupal 9

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

File

core/lib/Drupal/Core/Form/EventSubscriber/FormAjaxSubscriber.php, line 159

Class

FormAjaxSubscriber
Wraps AJAX form submissions that are triggered via an exception.

Namespace

Drupal\Core\Form\EventSubscriber

Code

public static function getSubscribedEvents() {

  // Run before exception.logger.
  $events[KernelEvents::EXCEPTION] = [
    'onException',
    51,
  ];

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