protected function AdministrativeArea::valueSubmit in Address 8
Perform any necessary changes to the form values prior to storage. There is no need for this function to actually store the data.
Overrides InOperator::valueSubmit
File
- src/Plugin/ views/ filter/ AdministrativeArea.php, line 390 
Class
- AdministrativeArea
- Filter by administrative area.
Namespace
Drupal\address\Plugin\views\filterCode
protected function valueSubmit($form, FormStateInterface $form_state) {
  $this->formState = $form_state;
  $country_source = $this
    ->getCountrySource();
  if ($country_source == 'static') {
    // Only save the values if we've got a static country code.
    parent::valueSubmit($form, $form_state);
  }
}