You are here

protected function FieldItemNormalizer::constructValue in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/hal/src/Normalizer/FieldItemNormalizer.php \Drupal\hal\Normalizer\FieldItemNormalizer::constructValue()

Build the field item value using the incoming data.

Parameters

$data: The incoming data for this field item.

$context: The context passed into the Normalizer.

Return value

mixed The value to use in Entity::setValue().

1 call to FieldItemNormalizer::constructValue()
FieldItemNormalizer::denormalize in core/modules/hal/src/Normalizer/FieldItemNormalizer.php
Denormalizes data back into an object of the given class.
1 method overrides FieldItemNormalizer::constructValue()
EntityReferenceItemNormalizer::constructValue in core/modules/hal/src/Normalizer/EntityReferenceItemNormalizer.php
Build the field item value using the incoming data.

File

core/modules/hal/src/Normalizer/FieldItemNormalizer.php, line 82
Contains \Drupal\hal\Normalizer\FieldItemNormalizer.

Class

FieldItemNormalizer
Converts the Drupal field item object structure to HAL array structure.

Namespace

Drupal\hal\Normalizer

Code

protected function constructValue($data, $context) {
  return $data;
}