amp-ad.html.twig in Accelerated Mobile Pages (AMP) 8.2
Same filename and directory in other branches
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()
3 theme calls to amp-ad.html.twig
- AmpGoogleAdsenseBlock::build in src/
Plugin/ Block/ AmpGoogleAdsenseBlock.php - Builds and returns the renderable array for this block plugin.
- AmpGoogleDoubleClickBlock::build in src/
Plugin/ Block/ AmpGoogleDoubleClickBlock.php - Builds and returns the renderable array for this block plugin.
- amp_adsense_preprocess_block in modules/
amp_adsense/ amp_adsense.module - Implements hook_preprocess_block().
File
templates/amp-ad.html.twigView source
- {#
- /**
- * @file
- * Template for an amp-ad.
- *
- * Available variables:
- * - type: The ad network.
- * - attributes: The HTML attributes for the amp-ad.
- *
- * @see template_preprocess_amp_ad()
- */
- #}
- <amp-ad{{ attributes }} type="{{ type }}">
- </amp-ad>