You are here

function template_preprocess_webform_element_base_text in Webform 6.x

Same name and namespace in other branches
  1. 8.5 includes/webform.theme.template.inc \template_preprocess_webform_element_base_text()

Prepares variables for webform element base text templates.

Default template: webform-element-base-text.html.twig.

Parameters

array $variables: An associative array containing the following key:

  • element: The webform element.
  • value: The content for the element.
  • options Associative array of options for element.
    • multiline: Flag to determine if value spans multiple lines.
    • email: Flag to determine if element is for an email.

File

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

Code

function template_preprocess_webform_element_base_text(array &$variables) {

  // Set title.
  _template_progress_webform_set_title($variables, TRUE);
}