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().
File
- drupal/core/modules/hal/lib/Drupal/hal/Normalizer/FieldItemNormalizer.php, line 81
- 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;
}