Issue #2620658 by bojanz: Remove entity_load_multiple() usage from DefaultSelection

8.1.x
Nathaniel Catchpole 2015-11-25 20:40:23 +00:00
parent 91980774cc
commit f6ffab1df5
1 changed files with 1 additions and 1 deletions

View File

@ -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());