function CacheableOmission::getNormalization

Same name and namespace in other branches
  1. 9 core/modules/jsonapi/src/Normalizer/Value/CacheableOmission.php \Drupal\jsonapi\Normalizer\Value\CacheableOmission::getNormalization()
  2. 10 core/modules/jsonapi/src/Normalizer/Value/CacheableOmission.php \Drupal\jsonapi\Normalizer\Value\CacheableOmission::getNormalization()
  3. 11.x core/modules/jsonapi/src/Normalizer/Value/CacheableOmission.php \Drupal\jsonapi\Normalizer\Value\CacheableOmission::getNormalization()

A CacheableOmission should never have its normalization retrieved.

Overrides CacheableNormalization::getNormalization

File

core/modules/jsonapi/src/Normalizer/Value/CacheableOmission.php, line 42

Class

CacheableOmission
Represents the cacheability associated with the omission of a value.

Namespace

Drupal\jsonapi\Normalizer\Value

Code

public function getNormalization() {
    throw new \LogicException('A CacheableOmission should never have its normalization retrieved.');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.