diff --git a/core/modules/hal/src/Normalizer/FieldItemNormalizer.php b/core/modules/hal/src/Normalizer/FieldItemNormalizer.php index 02bd32f5e3..1f80949377 100644 --- a/core/modules/hal/src/Normalizer/FieldItemNormalizer.php +++ b/core/modules/hal/src/Normalizer/FieldItemNormalizer.php @@ -84,6 +84,7 @@ protected function constructValue($data, $context) { * The context passed into the normalizer. * * @return array + * An array of field item values, keyed by property name. */ protected function normalizedFieldValues(FieldItemInterface $field_item, $format, array $context) { $denormalized = []; diff --git a/core/modules/hal/tests/src/Kernel/EntityTranslationNormalizeTest.php b/core/modules/hal/tests/src/Kernel/EntityTranslationNormalizeTest.php index 4f9dc244cc..2597af4aff 100644 --- a/core/modules/hal/tests/src/Kernel/EntityTranslationNormalizeTest.php +++ b/core/modules/hal/tests/src/Kernel/EntityTranslationNormalizeTest.php @@ -47,8 +47,8 @@ public function testNodeTranslation() { 'type' => $node_type->id(), 'status' => NodeInterface::PUBLISHED, 'langcode' => 'en', - 'promote' => TRUE, - 'sticky' => FALSE, + 'promote' => 1, + 'sticky' => 0, 'body' => [ 'value' => $this->randomMachineName(), 'format' => $this->randomMachineName()