public function BackgroundVideoManager::getJsSettings in Background Video 8
Returns JS settings.
Return value
array
File
- src/
Manager/ BackgroundVideoManager.php, line 25
Class
- BackgroundVideoManager
- Class BackgroundVideoManager
Namespace
Drupal\background_video\ManagerCode
public function getJsSettings() {
return [
'mp4' => self::_background_video_geturl_preprocess_page('mp4'),
'ogv' => self::_background_video_geturl_preprocess_page('ogv'),
'webm' => self::_background_video_geturl_preprocess_page('webm'),
'control_pos' => $this->config
->get('background_video_control_position'),
'loop' => $this->config
->get('background_video_loop'),
'auto_play' => $this->config
->get('background_video_autoplay'),
'video_id' => $this->config
->get('background_video_id'),
];
}