You are here

public static function CacheableNormalization::permanent in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/jsonapi/src/Normalizer/Value/CacheableNormalization.php \Drupal\jsonapi\Normalizer\Value\CacheableNormalization::permanent()
  2. 10 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

... See full list

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\Value

Code

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