You are here

constant ResourceObjectNormalizationCacher::RESOURCE_CACHE_SUBSET_FIELDS in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/jsonapi/src/EventSubscriber/ResourceObjectNormalizationCacher.php \Drupal\jsonapi\EventSubscriber\ResourceObjectNormalizationCacher::RESOURCE_CACHE_SUBSET_FIELDS
  2. 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 40

Class

ResourceObjectNormalizationCacher
Caches entity normalizations after the response has been sent.

Namespace

Drupal\jsonapi\EventSubscriber

Code

const RESOURCE_CACHE_SUBSET_FIELDS = 'fields';