diff --git a/core/modules/comment/src/CommentInterface.php b/core/modules/comment/src/CommentInterface.php index 78610ab..75818f8 100644 --- a/core/modules/comment/src/CommentInterface.php +++ b/core/modules/comment/src/CommentInterface.php @@ -21,7 +21,7 @@ /** * Comment is published. */ - const PUBLISHED = ContentEntityBase::STATUS_UNPUBLISHED; + const PUBLISHED = ContentEntityBase::STATUS_PUBLISHED; /** * Determines if this comment is a reply to another comment. diff --git a/core/modules/comment/src/Entity/Comment.php b/core/modules/comment/src/Entity/Comment.php index 535d4de..54acc1d 100644 --- a/core/modules/comment/src/Entity/Comment.php +++ b/core/modules/comment/src/Entity/Comment.php @@ -477,7 +477,7 @@ public function setCreatedTime($created) { * {@inheritdoc} */ public function isPublished() { - return $this->get('status')->value == ContentEntityBase::PUBLISHED; + return $this->get('status')->value == ContentEntityBase::STATUS_PUBLISHED; } /** @@ -491,7 +491,7 @@ public function getStatus() { * {@inheritdoc} */ public function setPublished($status) { - $this->set('status', $status ? ContentEntityBase::PUBLISHED : ContentEntityBase::UNPUBLISHED); + $this->set('status', $status ? ContentEntityBase::STATUS_PUBLISHED : ContentEntityBase::STATUS_UNPUBLISHED); return $this; }