Commit f6ffab1d authored by catch's avatar catch
Browse files

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

parent 91980774
...@@ -254,7 +254,7 @@ public function getReferenceableEntities($match = NULL, $match_operator = 'CONTA ...@@ -254,7 +254,7 @@ public function getReferenceableEntities($match = NULL, $match_operator = 'CONTA
} }
$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());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment