template_preprocess_views_exposed_form(&$variables)
Prepares variables for views exposed form templates.
Default template: views-exposed-form.html.twig.
array $variables: An associative array containing:
function template_preprocess_views_exposed_form(&$variables) { $form = &$variables['form']; if (!empty($form['q'])) { $variables['q'] = $form['q']; } foreach ($form['#info'] as $info) { if (!empty($info['label'])) { $form[$info['value']]['#title'] = $info['label']; } if (!empty($info['description'])) { $form[$info['value']]['#description'] = $info['description']; } } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!views!views.theme.inc/function/template_preprocess_views_exposed_form/8.1.x