You are here

public static function CacheableNormalization::permanent in JSON:API 8.2

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.

6 calls to CacheableNormalization::permanent()
CacheableOmission::permanent in src/Normalizer/Value/CacheableOmission.php
Creates a CacheableNormalization instance without any special cacheability.
DataNormalizer::normalize in src/Normalizer/DataNormalizer.php
Normalizes an object into a set of arrays/scalars.
FieldNormalizer::normalize in src/Normalizer/FieldNormalizer.php
Normalizes an object into a set of arrays/scalars.
JsonApiDocumentTopLevelNormalizer::normalize in src/Normalizer/JsonApiDocumentTopLevelNormalizer.php
Normalizes an object into a set of arrays/scalars.
ResourceIdentifierNormalizer::normalize in src/Normalizer/ResourceIdentifierNormalizer.php
Normalizes an object into a set of arrays/scalars.

... See full list

1 method overrides CacheableNormalization::permanent()
CacheableOmission::permanent in src/Normalizer/Value/CacheableOmission.php
Creates a CacheableNormalization instance without any special cacheability.

File

src/Normalizer/Value/CacheableNormalization.php, line 55

Class

CacheableNormalization
Use to store normalized data and its cacheability.

Namespace

Drupal\jsonapi\Normalizer\Value

Code

public static function permanent($normalization) {
  return new static(new CacheableMetadata(), $normalization);
}