function FormAjaxSubscriber::getSubscribedEvents
Same name in other branches
- 9 core/lib/Drupal/Core/Form/EventSubscriber/FormAjaxSubscriber.php \Drupal\Core\Form\EventSubscriber\FormAjaxSubscriber::getSubscribedEvents()
- 8.9.x core/lib/Drupal/Core/Form/EventSubscriber/FormAjaxSubscriber.php \Drupal\Core\Form\EventSubscriber\FormAjaxSubscriber::getSubscribedEvents()
- 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\EventSubscriberCode
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.