yamlform-help-video-youtube.html.twig in YAML Form 8
Theme implementation for form help video using YouTube.
Available variables
- youtube_id: YouTube video id.
1 theme call to yamlform-help-video-youtube.html.twig
- YamlFormHelpController::index in src/
Controller/ YamlFormHelpController.php - Returns dedicated help video page.
File
templates/yamlform-help-video-youtube.html.twigView source
- {#
- /**
- * @file
- * Theme implementation for form help video using YouTube.
- *
- * Available variables
- * - youtube_id: YouTube video id.
- *
- * @ingroup themeable
- */
- #}
- {{ attach_library('yamlform/yamlform.help') }}
- <div class="yamlform-help-video-youtube">
- <div class="yamlform-help-video-youtube--container">
- <iframe width="560" height="315" src="https://www.youtube.com/embed/{{ youtube_id }}?rel=0&autoplay=1" frameborder="0" allowfullscreen></iframe>
- </div>
- </div>