You are here

public function FeedbackMessage::isPublished in Feedback 3.x

Returns the Feedback message published status indicator.

Unpublished Feedback message are only visible to restricted users.

Return value

bool TRUE if the Feedback message is published.

Overrides FeedbackMessageInterface::isPublished

File

src/Entity/FeedbackMessage.php, line 144

Class

FeedbackMessage
Defines the Feedback message entity.

Namespace

Drupal\feedback\Entity

Code

public function isPublished() {
  return (bool) $this
    ->getEntityKey('status');
}