You are here

shortcode-img.html.twig in Shortcode 2.0.x

Same filename and directory in other branches
  1. 8 shortcode_basic_tags/templates/shortcode-img.html.twig

Default theme implementation for the img shortcode.

Available variables:

  • src: The image src attribute.
  • class: Class string.
  • alt: The alt text.

File

shortcode_basic_tags/templates/shortcode-img.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for the img shortcode.
  5. *
  6. * Available variables:
  7. * - src: The image src attribute.
  8. * - class: Class string.
  9. * - alt: The alt text.
  10. */
  11. #}
  12. <img src="{{ src }}" class="{{ class }}" alt="{{ alt }}"/>