function JsonApiJsonSchemaTestTrait::getNormalizationForValue

File

core/modules/jsonapi/tests/src/Traits/JsonApiJsonSchemaTestTrait.php, line 44

Class

JsonApiJsonSchemaTestTrait

Namespace

Drupal\Tests\jsonapi\Traits

Code

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.