Default theme implementation for an image using a specific image style.
Available variables:
-
attributes: HTML attributes for the image, including the following:
- src: Full URL or relative path to the image file.
- class: One or more classes to be applied to the image.
- width: The width of the image (if known).
- height: The height of the image (if known).
- title: The title of the image.
- alt: The alternative text for the image.
See also
template_preprocess_image_style()
File
core/modules/image/templates/image-style.html.twig
Related topics
- Theme system overview
- Functions and templates for the user interface that themes can override.
Please login to continue.