interface CacheableNormalizerInterface in Drupal 10
Same name and namespace in other branches
- 8 core/modules/serialization/src/Normalizer/CacheableNormalizerInterface.php \Drupal\serialization\Normalizer\CacheableNormalizerInterface
- 9 core/modules/serialization/src/Normalizer/CacheableNormalizerInterface.php \Drupal\serialization\Normalizer\CacheableNormalizerInterface
Defines the interface for normalizers producing cacheable normalizations.
Hierarchy
- interface \Drupal\serialization\Normalizer\CacheableNormalizerInterface extends \Symfony\Component\Serializer\Normalizer\NormalizerInterface
Expanded class hierarchy of CacheableNormalizerInterface
All classes that implement CacheableNormalizerInterface
See also
2 files declare their use of CacheableNormalizerInterface
- EntitySerializationTest.php in core/
modules/ serialization/ tests/ src/ Kernel/ EntitySerializationTest.php - ResourceResponseSubscriber.php in core/
modules/ rest/ src/ EventSubscriber/ ResourceResponseSubscriber.php
File
- core/
modules/ serialization/ src/ Normalizer/ CacheableNormalizerInterface.php, line 12
Namespace
Drupal\serialization\NormalizerView source
interface CacheableNormalizerInterface extends NormalizerInterface {
/**
* Name of key for bubbling cacheability metadata via serialization context.
*
* @see \Symfony\Component\Serializer\Normalizer\NormalizerInterface::normalize()
* @see \Symfony\Component\Serializer\SerializerInterface::serialize()
* @see \Drupal\rest\EventSubscriber\ResourceResponseSubscriber::renderResponseBody()
*/
const SERIALIZATION_CONTEXT_CACHEABILITY = 'cacheability';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CacheableNormalizerInterface:: |
constant | Name of key for bubbling cacheability metadata via serialization context. |