public static function OptionsRequestSubscriber::getSubscribedEvents in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/EventSubscriber/OptionsRequestSubscriber.php \Drupal\Core\EventSubscriber\OptionsRequestSubscriber::getSubscribedEvents()
- 9 core/lib/Drupal/Core/EventSubscriber/OptionsRequestSubscriber.php \Drupal\Core\EventSubscriber\OptionsRequestSubscriber::getSubscribedEvents()
File
- core/
lib/ Drupal/ Core/ EventSubscriber/ OptionsRequestSubscriber.php, line 63
Class
- OptionsRequestSubscriber
- Handles options requests.
Namespace
Drupal\Core\EventSubscriberCode
public static function getSubscribedEvents() : array {
// Set a high priority so it is executed before routing.
$events[KernelEvents::REQUEST][] = [
'onRequest',
1000,
];
return $events;
}