You are here

faqfield-details-formatter.html.twig in FAQ Field 2.0.x

Same filename and directory in other branches
  1. 8 templates/faqfield-details-formatter.html.twig

Default theme implementation of a FAQ Field details formatter.

Available variables:

  • question: Prefiltered question value by check_plain.
  • answer: Prefiltered answer value by field setting format.
  • delta: Delta # of field element.

File

templates/faqfield-details-formatter.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation of a FAQ Field details formatter.
  5. *
  6. * Available variables:
  7. * - question: Prefiltered question value by check_plain.
  8. * - answer: Prefiltered answer value by field setting format.
  9. * - delta: Delta # of field element.
  10. *
  11. * @see template_preprocess()
  12. * @see template_preprocess_faqfield_details_formatter()
  13. *
  14. * @ingroup themeable
  15. */
  16. #}
  17. {% spaceless %}
  18. <details class="faqfield-details">
  19. <summary class="faqfield-question">{{ question }}</summary>
  20. <div class="faqfield-answer">{{ answer }}</div>
  21. </details>
  22. {% endspaceless %}