You are here

public function BrightcoveTextTrack::getSourceLanguage in Brightcove Video Connect 8

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

Returns the source language.

Return value

string The 2-letter source language.

Overrides BrightcoveTextTrackInterface::getSourceLanguage

1 call to BrightcoveTextTrack::getSourceLanguage()
BrightcoveTextTrack::preSave in src/Entity/BrightcoveTextTrack.php
Acts on an entity before the presave hook is invoked.

File

src/Entity/BrightcoveTextTrack.php, line 121

Class

BrightcoveTextTrack
Defines the Brightcove Text Track entity.

Namespace

Drupal\brightcove\Entity

Code

public function getSourceLanguage() {
  return $this
    ->get('source_language')->value;
}