You are here

public function FlagListItem::isPublished in Flag Lists 8

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

Returns the Flag list item published status indicator.

Unpublished Flag list item are only visible to restricted users.

Return value

bool TRUE if the Flag list item is published.

Overrides FlagListItemInterface::isPublished

File

src/Entity/FlagListItem.php, line 139

Class

FlagListItem
Defines the Flag list item entity.

Namespace

Drupal\flag_lists\Entity

Code

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