comparison core/modules/comment/src/Plugin/EntityReferenceSelection/CommentSelection.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 1fec387a4317
children
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
40 public function createNewEntity($entity_type_id, $bundle, $label, $uid) { 40 public function createNewEntity($entity_type_id, $bundle, $label, $uid) {
41 $comment = parent::createNewEntity($entity_type_id, $bundle, $label, $uid); 41 $comment = parent::createNewEntity($entity_type_id, $bundle, $label, $uid);
42 42
43 // In order to create a referenceable comment, it needs to published. 43 // In order to create a referenceable comment, it needs to published.
44 /** @var \Drupal\comment\CommentInterface $comment */ 44 /** @var \Drupal\comment\CommentInterface $comment */
45 $comment->setPublished(TRUE); 45 $comment->setPublished();
46 46
47 return $comment; 47 return $comment;
48 } 48 }
49 49
50 /** 50 /**