393c6cbd1c5af3b819c1814aab90d23a26f0854e
[yaffs-website] / web / core / modules / views / tests / themes / views_test_checkboxes_theme / views_test_checkboxes_theme.theme
1 <?php
2
3 /**
4  * @file
5  * Changes an exposed "type" filter from a multi-select to checkboxes.
6  */
7
8 use Drupal\Core\Form\FormStateInterface;
9
10 /**
11  * Changes an exposed "type" filter from a multi-select to checkboxes.
12  */
13 function views_test_checkboxes_theme_form_views_exposed_form_alter(&$form, FormStateInterface $form_state) {
14   if (isset($form['type'])) {
15     $form['type']['#type'] = 'checkboxes';
16   }
17   if (isset($form['tid'])) {
18     $form['tid']['#type'] = 'checkboxes';
19   }
20 }