Further Drupal 8.6.4 changes. Some core files were not committed before a commit...
[yaffs-website] / web / core / modules / comment / src / Plugin / EntityReferenceSelection / CommentSelection.php
index 414c5b23111a29a53d22e733033fdc7fa7556a74..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;
   }
@@ -85,7 +85,7 @@ class CommentSelection extends DefaultSelection {
 
     // Passing the query to node_query_node_access_alter() is sadly
     // insufficient for nodes.
-    // @see SelectionEntityTypeNode::entityQueryAlter()
+    // @see \Drupal\node\Plugin\EntityReferenceSelection\NodeSelection::buildEntityQuery()
     if (!$this->currentUser->hasPermission('bypass node access') && !count($this->moduleHandler->getImplementations('node_grants'))) {
       $query->condition($node_alias . '.status', 1);
     }