You are here

geysir-field-paragraph-wrapper.html.twig in Geysir 8

Default theme implementation to display a Geysir Field Paragraph Wrapper.

Available variables:

  • paragraph: Full paragraph entity.

    • id: The paragraph ID.
    • bundle: The type of the paragraph, for example, "image" or "text".
    • authorid: The user ID of the paragraph author.
    • createdtime: Formatted creation date. Preprocess functions can reformat it by calling format_date() with the desired parameters on $variables['paragraph']->getCreatedTime().
  • content: The rendered paragraph and all eventual other children. Use {{ content }} to print them all, or print a subset such as {{ content.field_example }}. Use {{ content|without('field_example') }} to temporarily suppress the printing of a given child element.
  • links: The Geysir Field Paragraph links.
  • attributes: HTML attributes for the containing element. The attributes.class element may contain one or more of the following classes:

    • geysir-field-paragraph-wrapper: The current template type (also known as a "theming hook").

File

templates/geysir-field-paragraph-wrapper.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to display a Geysir Field Paragraph Wrapper.
  5. *
  6. * Available variables:
  7. * - paragraph: Full paragraph entity.
  8. * - id: The paragraph ID.
  9. * - bundle: The type of the paragraph, for example, "image" or "text".
  10. * - authorid: The user ID of the paragraph author.
  11. * - createdtime: Formatted creation date. Preprocess functions can
  12. * reformat it by calling format_date() with the desired parameters on
  13. * $variables['paragraph']->getCreatedTime().
  14. * - content: The rendered paragraph and all eventual other children.
  15. * Use {{ content }} to print them all, or print a subset such as
  16. * {{ content.field_example }}. Use {{ content|without('field_example') }}
  17. * to temporarily suppress the printing of a given child element.
  18. * - links: The Geysir Field Paragraph links.
  19. * - attributes: HTML attributes for the containing element.
  20. * The attributes.class element may contain one or more of the following
  21. * classes:
  22. * - geysir-field-paragraph-wrapper: The current template type (also known as a "theming hook").
  23. *
  24. * @see template_preprocess_geysir_field_paragraph_wrapper()
  25. *
  26. * @ingroup themeable
  27. */
  28. #}
  29. <div{{ attributes }}>
  30. {{ content }}
  31. {{ links }}
  32. </div>