Loading src/Element/EntityFieldSelect.php +1 −1 Original line number Diff line number Diff line Loading @@ -286,7 +286,7 @@ public static function getOptionsFromValues($values) { $targetEntityType = \Drupal::service('entity_type.manager')->getDefinition($target_entity_type); // If this is a content entity. if ($targetEntityType->isSubClassOf('\Drupal\Core\Entity\ContentEntityInterface')) { if ($targetEntityType->entityClassImplements('\Drupal\Core\Entity\ContentEntityInterface')) { $target_entity_type_bundles = EntityFieldSelect::getReferenceFieldsAllowedBundles($field->getType(), $field_settings); $target_bundles_infos = \Drupal::service('entity_type.bundle.info')->getBundleInfo($target_entity_type); if (empty($target_entity_type_bundles)) { Loading Loading
src/Element/EntityFieldSelect.php +1 −1 Original line number Diff line number Diff line Loading @@ -286,7 +286,7 @@ public static function getOptionsFromValues($values) { $targetEntityType = \Drupal::service('entity_type.manager')->getDefinition($target_entity_type); // If this is a content entity. if ($targetEntityType->isSubClassOf('\Drupal\Core\Entity\ContentEntityInterface')) { if ($targetEntityType->entityClassImplements('\Drupal\Core\Entity\ContentEntityInterface')) { $target_entity_type_bundles = EntityFieldSelect::getReferenceFieldsAllowedBundles($field->getType(), $field_settings); $target_bundles_infos = \Drupal::service('entity_type.bundle.info')->getBundleInfo($target_entity_type); if (empty($target_entity_type_bundles)) { Loading