public static function JsonApiRequestValidator::getSubscribedEvents in Drupal 8
Same name and namespace in other branches
- 9 core/modules/jsonapi/src/EventSubscriber/JsonApiRequestValidator.php \Drupal\jsonapi\EventSubscriber\JsonApiRequestValidator::getSubscribedEvents()
- 10 core/modules/jsonapi/src/EventSubscriber/JsonApiRequestValidator.php \Drupal\jsonapi\EventSubscriber\JsonApiRequestValidator::getSubscribedEvents()
File
- core/
modules/ jsonapi/ src/ EventSubscriber/ JsonApiRequestValidator.php, line 86
Class
- JsonApiRequestValidator
- Request subscriber that validates a JSON:API request.
Namespace
Drupal\jsonapi\EventSubscriberCode
public static function getSubscribedEvents() {
$events[KernelEvents::REQUEST][] = [
'onRequest',
];
return $events;
}