You are here

public static function JsonApiRequestValidator::getSubscribedEvents in JSON:API 8.2

File

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;
}