function JsonApiRequestValidator::getSubscribedEvents

Same name in other branches
  1. 8.9.x core/modules/jsonapi/src/EventSubscriber/JsonApiRequestValidator.php \Drupal\jsonapi\EventSubscriber\JsonApiRequestValidator::getSubscribedEvents()
  2. 10 core/modules/jsonapi/src/EventSubscriber/JsonApiRequestValidator.php \Drupal\jsonapi\EventSubscriber\JsonApiRequestValidator::getSubscribedEvents()
  3. 11.x 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\EventSubscriber

Code

public static function getSubscribedEvents() {
    $events[KernelEvents::REQUEST][] = [
        'onRequest',
    ];
    return $events;
}

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