You are here

function template_preprocess_webform_html_editor_markup in Webform 8.5

Same name and namespace in other branches
  1. 6.x includes/webform.theme.template.inc \template_preprocess_webform_html_editor_markup()

Prepares variables for webform HTML Editor markup templates.

Default template: webform-html-editor-markup.html.twig.

Parameters

array $variables: An associative array containing:

  • markup: HTML markup.
  • allowed_tags: Allowed tags.

File

includes/webform.theme.template.inc, line 675
Preprocessors and helper functions to make theming easier.

Code

function template_preprocess_webform_html_editor_markup(array &$variables) {
  $variables['content'] = [
    '#markup' => $variables['markup'],
    '#allowed_tags' => $variables['allowed_tags'],
  ];
}