You are here

public function BrightcoveTextTrack::isPublished in Brightcove Video Connect 8

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

Returns the Brightcove Text Track published status indicator.

Unpublished Brightcove Text Track are only visible to restricted users.

Return value

bool TRUE if the Brightcove Text Track is published.

Overrides BrightcoveTextTrackInterface::isPublished

File

src/Entity/BrightcoveTextTrack.php, line 263

Class

BrightcoveTextTrack
Defines the Brightcove Text Track entity.

Namespace

Drupal\brightcove\Entity

Code

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