You are here

function template_preprocess_yamlform_element_image_file in YAML Form 8

Prepares variables for an image file element.

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

Code

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