You are here

amp-ad.html.twig in Accelerated Mobile Pages (AMP) 8.2

Same filename and directory in other branches
  1. 8.3 templates/amp-ad.html.twig
  2. 8 templates/amp-ad.html.twig

Template for an amp-ad.

Available variables:

  • type: The ad network.
  • attributes: The HTML attributes for the amp-ad.

See also

template_preprocess_amp_ad()

File

templates/amp-ad.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Template for an amp-ad.
  5. *
  6. * Available variables:
  7. * - type: The ad network.
  8. * - attributes: The HTML attributes for the amp-ad.
  9. *
  10. * @see template_preprocess_amp_ad()
  11. */
  12. #}
  13. <amp-ad{{ attributes }} type="{{ type }}">
  14. </amp-ad>