function 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\EventSubscriberCode
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.