You are here

function template_preprocess_input in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/includes/form.inc \template_preprocess_input()

Prepares variables for input templates.

Default template: input.html.twig.

Parameters

array $variables: An associative array containing:

  • element: An associative array containing the properties of the element. Properties used: #attributes.

File

core/includes/form.inc, line 326
Functions for form and batch generation and processing.

Code

function template_preprocess_input(&$variables) {
  $element = $variables['element'];
  $variables['children'] = $element['#children'];
}