protected function Name::valueValidate

Validate the options form.

Overrides FilterPluginBase::valueValidate

File

drupal/core/modules/user/lib/Drupal/user/Plugin/views/filter/Name.php, line 53
Definition of Drupal\user\Plugin\views\filter\Name.

Class

Name
Filter handler for usernames.

Namespace

Drupal\user\Plugin\views\filter

Code

protected function valueValidate($form, &$form_state) {
  $values = drupal_explode_tags($form_state['values']['options']['value']);
  $uids = $this
    ->validate_user_strings($form['value'], $values);
  if ($uids) {
    $form_state['values']['options']['value'] = $uids;
  }
}