/** * {@inheritdoc} */ public function validateExposed(&$form, FormStateInterface $form_state) { if (empty($this->options['exposed']) || empty($this->options['expose']['identifier'])) { return; } // We only validate if they've chosen the text field style. if ($this->options['type'] != 'textfield') { $input = $form_state->getValues()[$this->options['expose']['identifier']]; if ($this->options['is_grouped'] && isset($this->options['group_info']['group_items'][$input])) { $input = $this->options['group_info']['group_items'][$input]['value']; } if ($input != 'All') { $this->validatedExposedInput = (array) $input; } return; } parent::validateExposed($form, $form_state); }