You are here

public function WebformHelpManager::getVideo in Webform 8.5

Same name and namespace in other branches
  1. 6.x 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\webform

Code

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