You are here

public function CshsTaxonomyIndex::buildExposeForm in Client-side Hierarchical Select 8.3

Same name and namespace in other branches
  1. 8 src/Plugin/views/filter/CshsTaxonomyIndex.php \Drupal\cshs\Plugin\views\filter\CshsTaxonomyIndex::buildExposeForm()
  2. 8.2 src/Plugin/views/filter/CshsTaxonomyIndex.php \Drupal\cshs\Plugin\views\filter\CshsTaxonomyIndex::buildExposeForm()

File

src/Plugin/views/filter/CshsTaxonomyIndex.php, line 68

Class

CshsTaxonomyIndex
The common implementation for the `CshsTaxonomyIndex` plugin.

Namespace

Drupal\cshs\Plugin\views\filter

Code

public function buildExposeForm(&$form, FormStateInterface $form_state) : void {
  parent::buildExposeForm($form, $form_state);
  if (CshsElement::ID === $this->options['type']) {

    // Disable the "multiple" option in the exposed form settings.
    $form['expose']['multiple']['#access'] = FALSE;

    /* @noinspection AdditionOperationOnArraysInspection */
    $form += $this
      ->settingsForm($form, $form_state);
  }
}