You are here

public function BrightcoveTextTrack::isDefault in Brightcove Video Connect 8

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

Whether or not the text track is default.

Return value

bool TRUE if the text track is the default one, FALSE otherwise.

Overrides BrightcoveTextTrackInterface::isDefault

File

src/Entity/BrightcoveTextTrack.php, line 205

Class

BrightcoveTextTrack
Defines the Brightcove Text Track entity.

Namespace

Drupal\brightcove\Entity

Code

public function isDefault() {
  return (bool) $this
    ->get('default_text_track')->value;
}