Commit 58c46869 authored by xjm's avatar xjm

Issue #2916025 by Wim Leers: Rename $denormalized to $normalized in...

Issue #2916025 by Wim Leers: Rename $denormalized to $normalized in \Drupal\hal\Normalizer\FieldItemNormalizer::normalizedFieldValues()
parent a28fb181
......@@ -87,19 +87,19 @@ protected function constructValue($data, $context) {
* An array of field item values, keyed by property name.
*/
protected function normalizedFieldValues(FieldItemInterface $field_item, $format, array $context) {
$denormalized = [];
$normalized = [];
// We normalize each individual property, so each can do their own casting,
// if needed.
/** @var \Drupal\Core\TypedData\TypedDataInterface $property */
foreach ($field_item as $property_name => $property) {
$denormalized[$property_name] = $this->serializer->normalize($property, $format, $context);
$normalized[$property_name] = $this->serializer->normalize($property, $format, $context);
}
if (isset($context['langcode'])) {
$denormalized['lang'] = $context['langcode'];
$normalized['lang'] = $context['langcode'];
}
return $denormalized;
return $normalized;
}
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment