public function WebformHelpManager::getVideo in Webform 6.x
Same name and namespace in other branches
- 8.5 src/WebformHelpManager.php \Drupal\webform\WebformHelpManager::getVideo()
Get video.
Parameters
string|null $id: (optional) Video id.
Return value
array|mixed A single help item or all videos.
Overrides WebformHelpManagerInterface::getVideo
2 calls to WebformHelpManager::getVideo()
- WebformHelpManager::buildVideoLink in src/
WebformHelpManager.php - Build video link.
- WebformHelpManager::getVideoLinks in src/
WebformHelpManager.php - Get video links.
File
- src/
WebformHelpManager.php, line 174
Class
- WebformHelpManager
- Webform help manager.
Namespace
Drupal\webformCode
public function getVideo($id = NULL) {
if ($id !== NULL) {
return isset($this->videos[$id]) ? $this->videos[$id] : NULL;
}
else {
return $this->videos;
}
}