ResourceObjectNormalizationCacher::RESOURCE_CACHE_SUBSET_FIELDS

Same name in other branches
  1. 9 core/modules/jsonapi/src/EventSubscriber/ResourceObjectNormalizationCacher.php \Drupal\jsonapi\EventSubscriber\ResourceObjectNormalizationCacher::RESOURCE_CACHE_SUBSET_FIELDS
  2. 8.9.x core/modules/jsonapi/src/EventSubscriber/ResourceObjectNormalizationCacher.php \Drupal\jsonapi\EventSubscriber\ResourceObjectNormalizationCacher::RESOURCE_CACHE_SUBSET_FIELDS
  3. 10 core/modules/jsonapi/src/EventSubscriber/ResourceObjectNormalizationCacher.php \Drupal\jsonapi\EventSubscriber\ResourceObjectNormalizationCacher::RESOURCE_CACHE_SUBSET_FIELDS

Key for the fields subset.

The fields subset contains the parts of the normalization that can appear in a normalization based on the selected field set. This subset is incrementally built across different requests for the same resource object. A given field is normalized and put into the cache whenever there is a cache miss for that field.

File

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

Class

ResourceObjectNormalizationCacher
Caches entity normalizations after the response has been sent.

Namespace

Drupal\jsonapi\EventSubscriber

Code

const RESOURCE_CACHE_SUBSET_FIELDS = 'fields';

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