function ResourceObjectNormalizationCacher::getSubscribedEvents

File

core/modules/jsonapi/src/EventSubscriber/ResourceObjectNormalizationCacher.php, line 176

Class

ResourceObjectNormalizationCacher
Caches entity normalizations after the response has been sent.

Namespace

Drupal\jsonapi\EventSubscriber

Code

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

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