summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaF2018-10-12 11:30:29 (GMT)
committerJibran Ijaz2018-10-12 11:30:29 (GMT)
commit7850be9dbc1bddeb45edba7a846d5003abe852f1 (patch)
tree5baeb6b4fce18fea02fe234bf9141df636da5321
parent6280b927224c56dc521737d4d4c77624acf4b006 (diff)
Issue #3006208 by rp7: DER referencedEntities() does not support computed fields
-rwxr-xr-x[-rw-r--r--]src/Plugin/Field/FieldType/DynamicEntityReferenceFieldItemList.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Plugin/Field/FieldType/DynamicEntityReferenceFieldItemList.php b/src/Plugin/Field/FieldType/DynamicEntityReferenceFieldItemList.php
index fcff2e7..e090d5b 100644..100755
--- a/src/Plugin/Field/FieldType/DynamicEntityReferenceFieldItemList.php
+++ b/src/Plugin/Field/FieldType/DynamicEntityReferenceFieldItemList.php
@@ -38,7 +38,7 @@ class DynamicEntityReferenceFieldItemList extends EntityReferenceFieldItemList {
* {@inheritdoc}
*/
public function referencedEntities() {
- if (empty($this->list)) {
+ if ($this->isEmpty()) {
return [];
}