You are here

public function FlippingBook::isPublished in Flipping Book 8

Returns the Flipping Book published status indicator.

Unpublished Flipping Book are only visible to restricted users.

Return value

bool TRUE if the Flipping Book is published.

Overrides FlippingBookInterface::isPublished

File

src/Entity/FlippingBook.php, line 164

Class

FlippingBook
Defines the Flipping Book entity.

Namespace

Drupal\flipping_book\Entity

Code

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