Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / views / tests / themes / views_test_checkboxes_theme / views_test_checkboxes_theme.theme
index cab52ac713a2e123412027050073df2a0cf82dbd..393c6cbd1c5af3b819c1814aab90d23a26f0854e 100644 (file)
@@ -11,5 +11,10 @@ use Drupal\Core\Form\FormStateInterface;
  * Changes an exposed "type" filter from a multi-select to checkboxes.
  */
 function views_test_checkboxes_theme_form_views_exposed_form_alter(&$form, FormStateInterface $form_state) {
-  $form['type']['#type'] = 'checkboxes';
+  if (isset($form['type'])) {
+    $form['type']['#type'] = 'checkboxes';
+  }
+  if (isset($form['tid'])) {
+    $form['tid']['#type'] = 'checkboxes';
+  }
 }