webform-html-editor-markup.html.twig in Webform 8.5
Same filename and directory in other branches
Theme implementation for webform html editor markup.
Available variables
- markup: HTML markup.
- allowed_tags: Allowed tags.
- content: Renderable HTML markup.
Using Twig output modifer to remove extra carriage returns at the end of the generated markup.
See also
template_preprocess_webform_html_editor_markup()
\Drupal\webform\Element\WebformHtmlEditor::checkMarkup
https://www.drupal.org/project/drupal/issues/2245901
https://twig.symfony.com/doc/2.x/templates.html#whitespace-control
2 theme calls to webform-html-editor-markup.html.twig
- WebformHtmlEditor::checkMarkup in src/
Element/ WebformHtmlEditor.php - Runs HTML markup through (optional) text format.
- WebformMessageManagerTest::testMessageManager in tests/
src/ Unit/ WebformMessageManagerTest.php - Test webform message manager.
File
templates/webform-html-editor-markup.html.twigView source
- {#
- /**
- * @file
- * Theme implementation for webform html editor markup.
- *
- * Available variables
- * - markup: HTML markup.
- * - allowed_tags: Allowed tags.
- * - content: Renderable HTML markup.
- *
- * Using Twig output modifer to remove extra carriage returns at the end of
- * the generated markup.
- *
- * @see template_preprocess_webform_html_editor_markup()
- * @see \Drupal\webform\Element\WebformHtmlEditor::checkMarkup
- * @see https://www.drupal.org/project/drupal/issues/2245901
- * @see https://twig.symfony.com/doc/2.x/templates.html#whitespace-control
- * @ingroup themeable
- */
- #}
- {{- content -}}