You are here

webform-help-video-youtube.html.twig in Webform 8.5

Same filename and directory in other branches
  1. 6.x templates/webform-help-video-youtube.html.twig

Theme implementation for webform help video using YouTube.

Available variables

  • youtube_id: YouTube video id.

File

templates/webform-help-video-youtube.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme implementation for webform help video using YouTube.
  5. *
  6. * Available variables
  7. * - youtube_id: YouTube video id.
  8. *
  9. * @ingroup themeable
  10. */
  11. #}
  12. {{ attach_library('webform/webform.help') }}
  13. <div class="webform-help-video-youtube">
  14. <div class="webform-help-video-youtube--container">
  15. <iframe width="560" height="315" src="https://www.youtube.com/embed/{{ youtube_id }}?rel=0&modestbranding=1{{ autoplay ? '&autoplay=1' : '' }}"{{ autoplay ? 'allow="autoplay"' : '' }} frameborder="0" allowfullscreen></iframe>
  16. </div>
  17. </div>