function FormAjaxSubscriber::getSubscribedEvents

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Form/EventSubscriber/FormAjaxSubscriber.php \Drupal\Core\Form\EventSubscriber\FormAjaxSubscriber::getSubscribedEvents()
  2. 8.9.x core/lib/Drupal/Core/Form/EventSubscriber/FormAjaxSubscriber.php \Drupal\Core\Form\EventSubscriber\FormAjaxSubscriber::getSubscribedEvents()
  3. 11.x core/lib/Drupal/Core/Form/EventSubscriber/FormAjaxSubscriber.php \Drupal\Core\Form\EventSubscriber\FormAjaxSubscriber::getSubscribedEvents()

File

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

Class

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

Namespace

Drupal\Core\Form\EventSubscriber

Code

public static function getSubscribedEvents() : array {
  // Run before exception.logger.
  $events[KernelEvents::EXCEPTION] = [
    'onException',
    51,
  ];
  // Run before main_content_view_subscriber.
  $events[KernelEvents::VIEW][] = [
    'onView',
    1,
  ];
  return $events;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.