faqfield-simple-text-formatter.html.twig in FAQ Field 8
Same filename and directory in other branches
Default theme implementation of a FAQ Field simple text formatter.
Available variables:
- question: Prefiltered question value by check_plain.
- answer: Prefiltered answer value by field setting format.
- delta: Delta # of field element.
1 theme call to faqfield-simple-text-formatter.html.twig
- FaqFieldSimpleTextFormatter::viewElements in src/
Plugin/ Field/ FieldFormatter/ FaqFieldSimpleTextFormatter.php - Builds a renderable array for a field value.
File
templates/faqfield-simple-text-formatter.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation of a FAQ Field simple text formatter.
- *
- * Available variables:
- * - question: Prefiltered question value by check_plain.
- * - answer: Prefiltered answer value by field setting format.
- * - delta: Delta # of field element.
- *
- * @see template_preprocess()
- * @see template_preprocess_faqfield_simple_text_formatter()
- *
- * @ingroup themeable
- */
- #}
- {% spaceless %}
- <h3 class="faqfield-question">{{ question }}</h3>
- <div class="faqfield-answer">{{ answer }}</div>
- {% endspaceless %}