You are here

function template_preprocess_yamlform_element_audio_file in YAML Form 8

Prepares variables for an audio file element.

Default template: yamlform-element-audio-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 744
Preprocessors and helper functions to make theming easier.

Code

function template_preprocess_yamlform_element_audio_file(array &$variables) {
  template_preprocess_yamlform_element_managed_file($variables);
}