You are here

public static function ResourceResponseValidator::getSubscribedEvents in JSON:API 8

Same name and namespace in other branches
  1. 8.2 src/EventSubscriber/ResourceResponseValidator.php \Drupal\jsonapi\EventSubscriber\ResourceResponseValidator::getSubscribedEvents()

File

src/EventSubscriber/ResourceResponseValidator.php, line 98

Class

ResourceResponseValidator
Response subscriber that validates a JSON API response.

Namespace

Drupal\jsonapi\EventSubscriber

Code

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