Issue #2620658 by bojanz: Remove entity_load_multiple() usage from DefaultSelection
parent
91980774cc
commit
f6ffab1df5
|
@ -254,7 +254,7 @@ class DefaultSelection extends PluginBase implements SelectionInterface, Selecti
|
||||||
}
|
}
|
||||||
|
|
||||||
$options = array();
|
$options = array();
|
||||||
$entities = entity_load_multiple($target_type, $result);
|
$entities = $this->entityManager->getStorage($target_type)->loadMultiple($result);
|
||||||
foreach ($entities as $entity_id => $entity) {
|
foreach ($entities as $entity_id => $entity) {
|
||||||
$bundle = $entity->bundle();
|
$bundle = $entity->bundle();
|
||||||
$options[$bundle][$entity_id] = Html::escape($entity->label());
|
$options[$bundle][$entity_id] = Html::escape($entity->label());
|
||||||
|
|
Loading…
Reference in New Issue