function template_preprocess_yamlform_composite_location in YAML Form 8
Prepares variables for location composite element templates.
Default template: yamlform-element-location.html.twig.
Parameters
array $variables: An associative array containing:
- element: An associative array containing the properties of the element. Properties used: #title, #value, #options, #description, #required, #attributes.
File
- includes/
yamlform.theme.inc, line 681 - Preprocessors and helper functions to make theming easier.
Code
function template_preprocess_yamlform_composite_location(array &$variables) {
$variables['content'] = $variables['element'];
}