shortcode-img.html.twig in Shortcode 2.0.x
Same filename and directory in other branches
Default theme implementation for the img shortcode.
Available variables:
- src: The image src attribute.
- class: Class string.
- alt: The alt text.
1 theme call to shortcode-img.html.twig
- ImageShortcode::process in shortcode_basic_tags/
src/ Plugin/ Shortcode/ ImageShortcode.php - Performs the shortcode processing.
File
shortcode_basic_tags/templates/shortcode-img.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation for the img shortcode.
- *
- * Available variables:
- * - src: The image src attribute.
- * - class: Class string.
- * - alt: The alt text.
- */
- #}
- <img src="{{ src }}" class="{{ class }}" alt="{{ alt }}"/>