You are here

public function BrightcoveTextTrack::setPublished in Brightcove Video Connect 8

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

Sets the published status of a Brightcove Text Track.

Parameters

bool $published: TRUE to set this Brightcove Text Track to published, FALSE to set it to unpublished.

Return value

\Drupal\brightcove\BrightcoveTextTrackInterface The called Brightcove Text Track entity.

Overrides BrightcoveTextTrackInterface::setPublished

File

src/Entity/BrightcoveTextTrack.php, line 270

Class

BrightcoveTextTrack
Defines the Brightcove Text Track entity.

Namespace

Drupal\brightcove\Entity

Code

public function setPublished($published) {
  return $this
    ->set('status', $published ? NODE_PUBLISHED : NODE_NOT_PUBLISHED);
}