paragraphs-info-icon.html.twig

Default theme implementation for a paragraphs info icon.

Available variables:

  • icon: Name of the icon to use.
  • message: Information message.

See also

template_preprocess()

3 theme calls to paragraphs-info-icon.html.twig
LibraryItemSummaryFormatter::viewElements in paragraphs/modules/paragraphs_library/src/Plugin/Field/FieldFormatter/LibraryItemSummaryFormatter.php
ParagraphsWidget::formElement in paragraphs/src/Plugin/Field/FieldWidget/ParagraphsWidget.php
Uses a similar approach to populate a new translation.
TestBoldTextBehavior::settingsIcon in paragraphs/tests/modules/paragraphs_test/src/Plugin/paragraphs/Behavior/TestBoldTextBehavior.php
Returns a short info icon for the current behavior settings.

File

paragraphs/templates/paragraphs-info-icon.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for a paragraphs info icon.
  5. *
  6. * Available variables:
  7. * - icon: Name of the icon to use.
  8. * - message: Information message.
  9. *
  10. * @see template_preprocess()
  11. *
  12. * @ingroup themeable
  13. */
  14. #}
  15. <span class="paragraphs-icon paragraphs-icon-{{ icon }}" title="{{ message }}">
  16. <span class="paragraphs-icon__message visually-hidden">{{ message }}</span>
  17. </span>