You are here

public function HeartbeatStream::isPublished in Heartbeat 8

Returns the Heartbeat stream published status indicator.

Unpublished Heartbeat stream are only visible to restricted users.

Return value

bool TRUE if the Heartbeat stream is published.

Overrides HeartbeatStreamInterface::isPublished

File

src/Entity/HeartbeatStream.php, line 290

Class

HeartbeatStream
Defines the Heartbeat stream entity.

Namespace

Drupal\heartbeat\Entity

Code

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