class ConfigFieldItemNormalizerValue in JSON:API 8
Helps normalize config entity "fields" in compliance with the JSON API spec.
@internal
Hierarchy
- class \Drupal\jsonapi\Normalizer\Value\FieldItemNormalizerValue implements CacheableDependencyInterface uses CacheableDependencyTrait
- class \Drupal\jsonapi\Normalizer\Value\ConfigFieldItemNormalizerValue
Expanded class hierarchy of ConfigFieldItemNormalizerValue
1 file declares its use of ConfigFieldItemNormalizerValue
- ConfigEntityNormalizer.php in src/
Normalizer/ ConfigEntityNormalizer.php
File
- src/
Normalizer/ Value/ ConfigFieldItemNormalizerValue.php, line 10
Namespace
Drupal\jsonapi\Normalizer\ValueView source
class ConfigFieldItemNormalizerValue extends FieldItemNormalizerValue {
/**
* {@inheritdoc}
*
* @var mixed
*/
protected $raw;
/**
* Instantiate a ConfigFieldItemNormalizerValue object.
*
* @param mixed $values
* The normalized result.
*/
public function __construct($values) {
$this->raw = $values;
}
/**
* {@inheritdoc}
*/
public function rasterizeValue() {
return $this
->rasterizeValueRecursive($this->raw);
}
}