You are here

public static function ResourceResponseValidator::getSubscribedEvents in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/jsonapi/src/EventSubscriber/ResourceResponseValidator.php \Drupal\jsonapi\EventSubscriber\ResourceResponseValidator::getSubscribedEvents()
  2. 9 core/modules/jsonapi/src/EventSubscriber/ResourceResponseValidator.php \Drupal\jsonapi\EventSubscriber\ResourceResponseValidator::getSubscribedEvents()

File

core/modules/jsonapi/src/EventSubscriber/ResourceResponseValidator.php, line 79

Class

ResourceResponseValidator
Response subscriber that validates a JSON:API response.

Namespace

Drupal\jsonapi\EventSubscriber

Code

public static function getSubscribedEvents() : array {
  $events[KernelEvents::RESPONSE][] = [
    'onResponse',
  ];
  return $events;
}