shortcode-link.html.twig in Shortcode 2.0.x
Same filename and directory in other branches
Default theme implementation for the link shortcode.
Available variables:
- url: The url.
- attributes: The attributes array.
- text: The link label.
1 theme call to shortcode-link.html.twig
- LinkShortcode::process in shortcode_basic_tags/
src/ Plugin/ Shortcode/ LinkShortcode.php - Performs the shortcode processing.
File
shortcode_basic_tags/templates/shortcode-link.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation for the link shortcode.
- *
- * Available variables:
- * - url: The url.
- * - attributes: The attributes array.
- * - text: The link label.
- */
- #}
- <a{{ attributes }}>{{ text }}</a>