image.html.twig in Zircon Profile 8
Same filename in this branch
Same filename and directory in other branches
Default theme implementation of an image.
Available variables:
- attributes: HTML attributes for the img tag.
- style_name: (optional) The name of the image style applied.
See also
24 theme calls to image.html.twig
- contextual_help in core/
modules/ contextual/ contextual.module - Implements hook_help().
- FeedViewBuilder::buildComponents in core/
modules/ aggregator/ src/ FeedViewBuilder.php - Builds the component fields and properties of a set of entities.
- FilemimeFormatter::viewValue in core/
modules/ file/ src/ Plugin/ Field/ FieldFormatter/ FilemimeFormatter.php - Generate the output appropriate for one field item.
- ImageFieldDisplayTest::testImageFieldDefaultImage in core/
modules/ image/ src/ Tests/ ImageFieldDisplayTest.php - Test use of a default image with an image field.
- ImageFieldDisplayTest::testImageFieldSettings in core/
modules/ image/ src/ Tests/ ImageFieldDisplayTest.php - Tests for image field settings.
File
core/modules/system/templates/image.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation 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_image()
- *
- * @ingroup themeable
- */
- #}
- <img{{ attributes }} />