You are here

public function Comment::getStatus in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/comment/src/Entity/Comment.php \Drupal\comment\Entity\Comment::getStatus()

Returns the comment's status.

Return value

int One of CommentInterface::PUBLISHED or CommentInterface::NOT_PUBLISHED

Overrides CommentInterface::getStatus

File

core/modules/comment/src/Entity/Comment.php, line 501
Contains \Drupal\comment\Entity\Comment.

Class

Comment
Defines the comment entity class.

Namespace

Drupal\comment\Entity

Code

public function getStatus() {
  return $this
    ->get('status')->value;
}