Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / lib / Drupal / Core / Field / EntityReferenceFieldItemList.php
index 0a53d9894a3250ae59f66696536299cc0f858e08..3fa199b7276401e6076f70f210534fa6e6345b14 100644 (file)
@@ -24,7 +24,7 @@ class EntityReferenceFieldItemList extends FieldItemList implements EntityRefere
    * {@inheritdoc}
    */
   public function referencedEntities() {
-    if (empty($this->list)) {
+    if ($this->isEmpty()) {
       return [];
     }