Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / node / src / Plugin / EntityReferenceSelection / NodeSelection.php
index 2f26393c2e53a8acbfbc20f457c14b7dae1a5d41..5fdb3ff859e18622f6af9307b109287e7f0cf0f9 100644 (file)
@@ -42,7 +42,7 @@ class NodeSelection extends DefaultSelection {
 
     // In order to create a referenceable node, it needs to published.
     /** @var \Drupal\node\NodeInterface $node */
-    $node->setPublished(TRUE);
+    $node->setPublished();
 
     return $node;
   }