You are here

public function FlaggingCollection::isPublished in Flag Lists 4.0.x

Same name and namespace in other branches
  1. 8 src/Entity/FlaggingCollection.php \Drupal\flag_lists\Entity\FlaggingCollection::isPublished()

Returns the Flagging collection published status indicator.

Unpublished Flagging collection are only visible to restricted users.

Return value

bool TRUE if the Flagging collection is published.

Overrides FlaggingCollectionInterface::isPublished

File

src/Entity/FlaggingCollection.php, line 299

Class

FlaggingCollection
Defines the Flagging collection entity.

Namespace

Drupal\flag_lists\Entity

Code

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