field--paragraphs-subtitle.html.twig

Theme override for a field paragraph_subtitle.

Available variables:

  • attributes: HTML attributes for the containing element.
  • label_hidden: Whether to show the field label or not.
  • title_attributes: HTML attributes for the title.
  • label: The label for the field.
  • multiple: TRUE if a field can contain multiple items.
  • items: List of all the field items. Each item contains:
    • attributes: List of HTML attributes for each item.
    • content: The field item's content.
  • entity_type: The entity type to which the field belongs.
  • field_name: The name of the field.
  • field_type: The type of the field.
  • label_display: The display settings for the label.

See also

template_preprocess_field()

File

paragraphs_collection/templates/field--paragraphs-subtitle.html.twig
View source
  1. {% extends "@paragraphs_collection/field--paragraphs.html.twig" %}
  2. {#
  3. /**
  4. * @file
  5. * Theme override for a field paragraph_subtitle.
  6. *
  7. * Available variables:
  8. * - attributes: HTML attributes for the containing element.
  9. * - label_hidden: Whether to show the field label or not.
  10. * - title_attributes: HTML attributes for the title.
  11. * - label: The label for the field.
  12. * - multiple: TRUE if a field can contain multiple items.
  13. * - items: List of all the field items. Each item contains:
  14. * - attributes: List of HTML attributes for each item.
  15. * - content: The field item's content.
  16. * - entity_type: The entity type to which the field belongs.
  17. * - field_name: The name of the field.
  18. * - field_type: The type of the field.
  19. * - label_display: The display settings for the label.
  20. *
  21. *
  22. * @see template_preprocess_field()
  23. */
  24. #}
  25. {% block content %}
  26. <h3{{ attributes }}>{{ items[0].content }}</h3>
  27. {% endblock %}