amp-image-wrapper.html.twig in Accelerated Mobile Pages (AMP) 8.3
Theme override of an image.
Available variables:
- attributes: HTML attributes for the img tag.
- style_name: (optional) The name of the image style applied.
See also
template_preprocess_amp_components_image()
File
templates/amp-image-wrapper.html.twigView source
- {#
- /**
- * @file
- * Theme override of an image.
- *
- * Available variables:
- * - attributes: HTML attributes for the img tag.
- * - style_name: (optional) The name of the image style applied.
- *
- * @see template_preprocess_amp_components_image()
- */
- #}
- <amp-img{{ attributes }}></amp-img>