You are here

public function User::submitOptionsForm in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/user/src/Plugin/views/argument_validator/User.php \Drupal\user\Plugin\views\argument_validator\User::submitOptionsForm()

Provides the default form for submitting options.

Overrides Entity::submitOptionsForm

File

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

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']);
}