You are here

public function YamlFormHelpManager::getVideo in YAML Form 8

Get video.

Parameters

string|null $id: (optional) Video id.

Return value

array|mixed A single help item or all videos.

Overrides YamlFormHelpManagerInterface::getVideo

File

src/YamlFormHelpManager.php, line 121

Class

YamlFormHelpManager
Form help manager.

Namespace

Drupal\yamlform

Code

public function getVideo($id = NULL) {
  if ($id !== NULL) {
    return isset($this->videos[$id]) ? $this->videos[$id] : NULL;
  }
  else {
    return $this->videos;
  }
}