function template_preprocess_yamlform_element_document_file in YAML Form 8
Prepares variables for a document file element.
Default template: yamlform-element-document-file.html.twig.
Parameters
array $variables: An associative array containing the following key:
- element: The form element.
- value: The content for the element.
- options Associative array of options for element.
- file: The element's File object.
File
- includes/
yamlform.theme.inc, line 760 - Preprocessors and helper functions to make theming easier.
Code
function template_preprocess_yamlform_element_document_file(array &$variables) {
template_preprocess_yamlform_element_managed_file($variables);
}