diff --git a/src/Form/IndexAddFieldsForm.php b/src/Form/IndexAddFieldsForm.php index 241ad1a..7bb6f05 100644 --- a/src/Form/IndexAddFieldsForm.php +++ b/src/Form/IndexAddFieldsForm.php @@ -371,7 +371,7 @@ class IndexAddFieldsForm extends EntityForm { $can_be_indexed = FALSE; if ($property instanceof EntityDataDefinitionInterface) { $bundles = \Drupal::entityManager()->getBundleInfo($property->getEntityTypeId()); - foreach ($bundles as $bundle => $label) { + foreach ($bundles as $bundle => $bundle_label) { $bundle_properties = \Drupal::entityManager()->getFieldDefinitions($property->getEntityTypeId(), $bundle); $nested_properties += $bundle_properties; }