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
......@@ -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;
......
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