class ViewsTestCheckboxesThemeHooks

Form alter hooks for views tests.

Hierarchy

Expanded class hierarchy of ViewsTestCheckboxesThemeHooks

File

core/modules/views/tests/themes/views_test_checkboxes_theme/src/Hook/ViewsTestCheckboxesThemeHooks.php, line 13

Namespace

Drupal\views_test_checkboxes_theme\Hook
View source
class ViewsTestCheckboxesThemeHooks {
  
  /**
   * Implements hook_form_FORM_ID_alter().
   */
  public function formViewsExposedFormAlter(&$form, FormStateInterface $form_state) : void {
    if (isset($form['type'])) {
      $form['type']['#type'] = 'checkboxes';
    }
    if (isset($form['tid'])) {
      $form['tid']['#type'] = 'checkboxes';
    }
  }

}

Members

Title Sort descending Modifiers Object type Summary
ViewsTestCheckboxesThemeHooks::formViewsExposedFormAlter public function Implements hook_form_FORM_ID_alter().

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.