You are here

faqfield-definition-list-formatter.html.twig in FAQ Field 8

Same filename and directory in other branches
  1. 2.0.x templates/faqfield-definition-list-formatter.html.twig

Default theme implementation of a FAQ Field definition list formatter.

Available variables:

  • items: An array of objects with the following fields.

    • question: Prefiltered question value by check_plain.
    • answer: Prefiltered answer value by field setting format.

File

templates/faqfield-definition-list-formatter.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation of a FAQ Field definition list formatter.
  5. *
  6. * Available variables:
  7. * - items: An array of objects with the following fields.
  8. * - question: Prefiltered question value by check_plain.
  9. * - answer: Prefiltered answer value by field setting format.
  10. *
  11. * @see template_preprocess()
  12. * @see template_preprocess_faqfield_definition_list_formatter()
  13. *
  14. * @ingroup themeable
  15. */
  16. #}
  17. {% spaceless %}
  18. <dl class="faqfield-definition-list">
  19. {% for item in items %}
  20. <dt class="faqfield-question">{{ item.question }}</dt>
  21. <dd class="faqfield-answer">{{ item.answer }}</dd>
  22. {% endfor %}
  23. </dl>
  24. {% endspaceless %}