link-badges-link-text.html.twig in Link Badges 8
Default theme implementation to link badges link text. Includes the badge syntax and the original link text.
Available variables:
- link: The original link render array
- badge_value: Value to display in badge
- badge_classes: Array of CSS classes to apply to badges.
See also
1 theme call to link-badges-link-text.html.twig
- link_badges_link_alter in ./
link_badges.module - Implements hook_link_alter()
File
templates/link-badges-link-text.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation to link badges link text. Includes the badge
- * syntax and the original link text.
- *
- * Available variables:
- * - link: The original link render array
- * - badge_value: Value to display in badge
- * - badge_classes: Array of CSS classes to apply to badges.
-
- * @see link_badges_link_alter().
- *
- * @ingroup themeable
- */
- #}
- <span class="link-badge-text {{ badge_text_class|join(' ') }}">
- {{ link.text }}
- </span>
- <span class="link-badge-wrapper {{ badge_wrapper_class|join(' ') }}">
- <span class="link-badge {{ badge_class|join(' ') }}">
- {{ badge_value }}
- </span>
- </span>