You are here

public function Status::isPublished in Heartbeat 8

Returns the Status published status indicator.

Unpublished Status are only visible to restricted users.

Return value

bool TRUE if the Status is published.

Overrides StatusInterface::isPublished

File

modules/statusmessage/src/Entity/Status.php, line 144

Class

Status

Namespace

Drupal\statusmessage\Entity

Code

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