paragraphs-info-icon.html.twig in Paragraphs 8
Default theme implementation for a paragraphs info icon.
Available variables:
- icon: Name of the icon to use.
- message: Information message.
See also
3 theme calls to paragraphs-info-icon.html.twig
- LibraryItemSummaryFormatter::viewElements in modules/
paragraphs_library/ src/ Plugin/ Field/ FieldFormatter/ LibraryItemSummaryFormatter.php - Builds a renderable array for a field value.
- ParagraphsWidget::formElement in src/
Plugin/ Field/ FieldWidget/ ParagraphsWidget.php - Uses a similar approach to populate a new translation.
- TestBoldTextBehavior::settingsIcon in tests/
modules/ paragraphs_test/ src/ Plugin/ paragraphs/ Behavior/ TestBoldTextBehavior.php - Returns a short info icon for the current behavior settings.
File
templates/paragraphs-info-icon.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation for a paragraphs info icon.
- *
- * Available variables:
- * - icon: Name of the icon to use.
- * - message: Information message.
- *
- * @see template_preprocess()
- *
- * @ingroup themeable
- */
- #}
- <span class="paragraphs-icon paragraphs-icon-{{ icon }}" title="{{ message }}">
- <span class="paragraphs-icon__message visually-hidden">{{ message }}</span>
- </span>