function template_preprocess_webform in Webform 6.x
Same name and namespace in other branches
- 8.5 includes/webform.theme.template.inc \template_preprocess_webform()
Prepares variables for webform templates.
Default template: webform.html.twig.
Parameters
array $variables: An associative array containing:
- element: An associative array containing the properties of the element. Properties used: #action, #method, #attributes, #webform_children.
File
- includes/
webform.theme.template.inc, line 74 - Preprocessors and helper functions to make theming easier.
Code
function template_preprocess_webform(array &$variables) {
template_preprocess_form($variables);
}