CacheableNormalizerInterface::SERIALIZATION_CONTEXT_CACHEABILITY

Same name in other branches
  1. 9 core/modules/serialization/src/Normalizer/CacheableNormalizerInterface.php \Drupal\serialization\Normalizer\CacheableNormalizerInterface::SERIALIZATION_CONTEXT_CACHEABILITY
  2. 8.9.x core/modules/serialization/src/Normalizer/CacheableNormalizerInterface.php \Drupal\serialization\Normalizer\CacheableNormalizerInterface::SERIALIZATION_CONTEXT_CACHEABILITY
  3. 10 core/modules/serialization/src/Normalizer/CacheableNormalizerInterface.php \Drupal\serialization\Normalizer\CacheableNormalizerInterface::SERIALIZATION_CONTEXT_CACHEABILITY

Name of key for bubbling cacheability metadata via serialization context.

See also

\Symfony\Component\Serializer\Normalizer\NormalizerInterface::normalize()

\Symfony\Component\Serializer\SerializerInterface::serialize()

\Drupal\rest\EventSubscriber\ResourceResponseSubscriber::renderResponseBody()

File

core/modules/serialization/src/Normalizer/CacheableNormalizerInterface.php, line 21

Class

CacheableNormalizerInterface
Defines the interface for normalizers producing cacheable normalizations.

Namespace

Drupal\serialization\Normalizer

Code

const SERIALIZATION_CONTEXT_CACHEABILITY = 'cacheability';

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