You are here

public function Heartbeat::isPublished in Heartbeat 8

Returns the Heartbeat published status indicator.

Unpublished Heartbeat are only visible to restricted users.

Return value

bool TRUE if the Heartbeat is published.

Overrides HeartbeatInterface::isPublished

File

src/Entity/Heartbeat.php, line 231

Class

Heartbeat

Namespace

Drupal\heartbeat\Entity

Code

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