From f6ffab1df5cb233fe1c2260cbf9b6964c295d4eb Mon Sep 17 00:00:00 2001 From: Nathaniel Catchpole Date: Wed, 25 Nov 2015 20:40:23 +0000 Subject: [PATCH] Issue #2620658 by bojanz: Remove entity_load_multiple() usage from DefaultSelection --- .../Entity/Plugin/EntityReferenceSelection/DefaultSelection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/DefaultSelection.php b/core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/DefaultSelection.php index 59d502bdb69..63f8c69aff1 100644 --- a/core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/DefaultSelection.php +++ b/core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/DefaultSelection.php @@ -254,7 +254,7 @@ class DefaultSelection extends PluginBase implements SelectionInterface, Selecti } $options = array(); - $entities = entity_load_multiple($target_type, $result); + $entities = $this->entityManager->getStorage($target_type)->loadMultiple($result); foreach ($entities as $entity_id => $entity) { $bundle = $entity->bundle(); $options[$bundle][$entity_id] = Html::escape($entity->label());