You are here

function template_preprocess_yamlform_element_video_file in YAML Form 8

Prepares variables for a video file element.

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

Code

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