Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / hal / src / Normalizer / ContentEntityNormalizer.php
index 1fc118dc5b5dc2e6f791bd62d3b77f2d5b31d852..eb4524728516ec75936725f28f4db3658ffa5689 100644 (file)
@@ -74,15 +74,15 @@ class ContentEntityNormalizer extends NormalizerBase {
 
     // If the fields to use were specified, only output those field values.
     if (isset($context['included_fields'])) {
-      $fields = [];
+      $field_items = [];
       foreach ($context['included_fields'] as $field_name) {
-        $fields[] = $entity->get($field_name);
+        $field_items[] = $entity->get($field_name);
       }
     }
     else {
-      $fields = $entity->getFields();
+      $field_items = $entity->getFields();
     }
-    foreach ($fields as $field) {
+    foreach ($field_items as $field) {
       // Continue if the current user does not have access to view this field.
       if (!$field->access('view', $context['account'])) {
         continue;