You are here

class ConfigFieldItemNormalizerValue in JSON:API 8

Helps normalize config entity "fields" in compliance with the JSON API spec.

@internal

Hierarchy

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\Value
View 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);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
CacheableDependencyTrait::$cacheContexts protected property Cache contexts.
CacheableDependencyTrait::$cacheMaxAge protected property Cache max-age.
CacheableDependencyTrait::$cacheTags protected property Cache tags.
CacheableDependencyTrait::getCacheContexts public function
CacheableDependencyTrait::getCacheMaxAge public function
CacheableDependencyTrait::getCacheTags public function
CacheableDependencyTrait::setCacheability protected function Sets cacheability; useful for value object constructors.
ConfigFieldItemNormalizerValue::$raw protected property Overrides FieldItemNormalizerValue::$raw
ConfigFieldItemNormalizerValue::rasterizeValue public function Overrides FieldItemNormalizerValue::rasterizeValue
ConfigFieldItemNormalizerValue::__construct public function Instantiate a ConfigFieldItemNormalizerValue object. Overrides FieldItemNormalizerValue::__construct
FieldItemNormalizerValue::rasterizeValueRecursive protected function Rasterizes a value recursively.