You are here

public function BrightcoveVideoPlaylistCmsEntity::isPublished in Brightcove Video Connect 8

Same name and namespace in other branches
  1. 8.2 src/Entity/BrightcoveVideoPlaylistCmsEntity.php \Drupal\brightcove\Entity\BrightcoveVideoPlaylistCmsEntity::isPublished()
  2. 3.x src/Entity/BrightcoveVideoPlaylistCmsEntity.php \Drupal\brightcove\Entity\BrightcoveVideoPlaylistCmsEntity::isPublished()

Returns the entity published status indicator.

Unpublished entities are only visible to restricted users.

Return value

bool TRUE if the entity is published.

Overrides BrightcoveVideoPlaylistCMSEntityInterface::isPublished

1 call to BrightcoveVideoPlaylistCmsEntity::isPublished()
BrightcoveVideo::save in src/Entity/BrightcoveVideo.php

File

src/Entity/BrightcoveVideoPlaylistCmsEntity.php, line 72

Class

BrightcoveVideoPlaylistCmsEntity
Common base class for CMS entities like Video and Playlist.

Namespace

Drupal\brightcove\Entity

Code

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