function User::submitOptionsForm

Overrides Entity::submitOptionsForm

File

core/modules/user/src/Plugin/views/argument_validator/User.php, line 84

Class

User
Validate whether an argument is a valid user.

Namespace

Drupal\user\Plugin\views\argument_validator

Code

public function submitOptionsForm(&$form, FormStateInterface $form_state, &$options = []) {
  // Filter trash out of the options so we don't store giant unnecessary arrays
  $options['roles'] = array_filter($options['roles']);
}

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