function JsonApiJsonSchemaTestTrait::getNormalizationForValue
File
-
core/
modules/ jsonapi/ tests/ src/ Traits/ JsonApiJsonSchemaTestTrait.php, line 44
Class
Namespace
Drupal\Tests\jsonapi\TraitsCode
protected function getNormalizationForValue(mixed $value) : mixed {
$normalization = $this->parentGetNormalizationForValue($value);
if ($normalization instanceof CacheableNormalization) {
return $normalization->getNormalization();
}
return $normalization;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.