Skip to content
Snippets Groups Projects
Commit 9c2b1650 authored by catch's avatar catch
Browse files

Issue #2143797 by agentrickard, amateescu: GetDefaultValue() fails with...

Issue #2143797 by agentrickard, amateescu: GetDefaultValue() fails with ConfigurableEntityReferenceFieldItemList.
parent b925d4a4
Branches
Tags
Loading
......@@ -27,9 +27,12 @@ protected function getDefaultValue() {
$uuids[$delta] = $properties['target_uuid'];
}
if ($uuids) {
$entity_ids = \Drupal::entityQuery('taxonomy_term')
->condition('uuid', $uuids, 'IN')
->execute();
$entities = \Drupal::entityManager()
->getStorageController('taxonomy_term')
->loadByProperties(array('uuid' => $uuids));
->loadMultiple($entity_ids);
foreach ($entities as $id => $entity) {
$entity_ids[$entity->uuid()] = $id;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment