public static function CacheableNormalization::permanent in Drupal 8
Same name and namespace in other branches
- 9 core/modules/jsonapi/src/Normalizer/Value/CacheableNormalization.php \Drupal\jsonapi\Normalizer\Value\CacheableNormalization::permanent()
Creates a CacheableNormalization instance without any special cacheability.
Parameters
array|string|int|float|bool|null $normalization: The normalized data. This value must not contain any CacheableNormalizations.
Return value
static The CacheableNormalization.
8 calls to CacheableNormalization::permanent()
- CacheableOmission::permanent in core/
modules/ jsonapi/ src/ Normalizer/ Value/ CacheableOmission.php - Creates a CacheableNormalization instance without any special cacheability.
- DataNormalizer::normalize in core/
modules/ jsonapi/ src/ Normalizer/ DataNormalizer.php - Normalizes an object into a set of arrays/scalars.
- FieldNormalizer::normalize in core/
modules/ jsonapi/ src/ Normalizer/ FieldNormalizer.php - Normalizes an object into a set of arrays/scalars.
- JsonApiDocumentTopLevelNormalizer::normalize in core/
modules/ jsonapi/ src/ Normalizer/ JsonApiDocumentTopLevelNormalizer.php - Normalizes an object into a set of arrays/scalars.
- ResourceIdentifierNormalizer::normalize in core/
modules/ jsonapi/ src/ Normalizer/ ResourceIdentifierNormalizer.php - Normalizes an object into a set of arrays/scalars.
1 method overrides CacheableNormalization::permanent()
- CacheableOmission::permanent in core/
modules/ jsonapi/ src/ Normalizer/ Value/ CacheableOmission.php - Creates a CacheableNormalization instance without any special cacheability.
File
- core/
modules/ jsonapi/ src/ Normalizer/ Value/ CacheableNormalization.php, line 55
Class
- CacheableNormalization
- Use to store normalized data and its cacheability.
Namespace
Drupal\jsonapi\Normalizer\ValueCode
public static function permanent($normalization) {
return new static(new CacheableMetadata(), $normalization);
}