function template_preprocess_webform_example_composite in Webform 6.x
Same name and namespace in other branches
- 8.5 modules/webform_example_composite/webform_example_composite.module \template_preprocess_webform_example_composite()
Prepares variables for webform example composite templates.
Default template: webform-example-composite.html.twig.
Parameters
array $variables: An associative array containing:
- element: An associative array containing the properties of the element.
File
- modules/
webform_example_composite/ webform_example_composite.module, line 30
Code
function template_preprocess_webform_example_composite(array &$variables) {
// Here you can get the composite element and alter it.
_template_preprocess_webform_composite($variables);
}