function CacheableNormalization::permanent
Same name in other branches
- 9 core/modules/jsonapi/src/Normalizer/Value/CacheableNormalization.php \Drupal\jsonapi\Normalizer\Value\CacheableNormalization::permanent()
- 10 core/modules/jsonapi/src/Normalizer/Value/CacheableNormalization.php \Drupal\jsonapi\Normalizer\Value\CacheableNormalization::permanent()
- 11.x 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 - FieldNormalizer::normalize in core/
modules/ jsonapi/ src/ Normalizer/ FieldNormalizer.php - JsonApiDocumentTopLevelNormalizer::normalize in core/
modules/ jsonapi/ src/ Normalizer/ JsonApiDocumentTopLevelNormalizer.php - ResourceIdentifierNormalizer::normalize in core/
modules/ jsonapi/ src/ Normalizer/ ResourceIdentifierNormalizer.php
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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.