You are here

function template_preprocess_yamlform in YAML Form 8

Prepares variables for yamlform templates.

Default template: yamlform.html.twig.

Parameters

array $variables: An associative array containing:

  • element: An associative array containing the properties of the element. Properties used: #action, #method, #attributes, #yamlform_children.

File

includes/yamlform.theme.inc, line 96
Preprocessors and helper functions to make theming easier.

Code

function template_preprocess_yamlform(array &$variables) {
  template_preprocess_form($variables);
}