You are here

public function CommentInterface::getStatus in Drupal 8

Returns the comment's status.

Return value

int|string|bool Either TRUE, '1', or CommentInterface::PUBLISHED(1) if the comment is published, or FALSE, '0', or CommentInterface::NOT_PUBLISHED(0) if the comment is not published.

Deprecated

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityPublishedInterface::isPublished() instead.

See also

https://www.drupal.org/node/2830201

1 method overrides CommentInterface::getStatus()
Comment::getStatus in core/modules/comment/src/Entity/Comment.php
Returns the comment's status.

File

core/modules/comment/src/CommentInterface.php, line 223

Class

CommentInterface
Provides an interface defining a comment entity.

Namespace

Drupal\comment

Code

public function getStatus();