sidr-trigger.html.twig in Sidr: Accessible Mobile Menus 8.3
Same filename and directory in other branches
Default theme implementation to display a Sidr Trigger.
Available variables:
- configuration: Block configuration.
- options: Sidr options (derived from configuration).
- attributes: Attributes for the Sidr trigger.
- trigger_icon: Markup for the trigger's icon (if any).
- trigger_text: Markup for the trigger's text (if any).
See also
1 theme call to sidr-trigger.html.twig
- SidrTrigger::build in src/
Plugin/ Block/ SidrTrigger.php - Builds and returns the renderable array for this block plugin.
File
templates/sidr-trigger.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation to display a Sidr Trigger.
- *
- * Available variables:
- * - configuration: Block configuration.
- * - options: Sidr options (derived from configuration).
- * - attributes: Attributes for the Sidr trigger.
- * - trigger_icon: Markup for the trigger's icon (if any).
- * - trigger_text: Markup for the trigger's text (if any).
- *
- * @see template_preprocess_sidr_trigger()
- *
- * @ingroup themeable
- */
- #}
- <button {{ attributes }}>
- {% if trigger_icon %}<span class="sidr-trigger__icon">{{ trigger_icon }}</span>{% endif %}
- {% if trigger_text %}<span class="sidr-trigger__text">{{ trigger_text }}</span>{% endif %}
- </button>