You are here

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

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

Default theme implementation for the button shortcode.

Available variables:

  • url: The url.
  • attributes: The attributes array.
  • text: The button label.

File

shortcode_basic_tags/templates/shortcode-button.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for the button shortcode.
  5. *
  6. * Available variables:
  7. * - url: The url.
  8. * - attributes: The attributes array.
  9. * - text: The button label.
  10. */
  11. #}
  12. <a{{ attributes }}><span>{{ text }}</span></a>