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