You are here

public function User::submitOptionsForm in Zircon Profile 8

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

Provide the default form form for submitting options

Overrides Entity::submitOptionsForm

File

core/modules/user/src/Plugin/views/argument_validator/User.php, line 82
Contains \Drupal\user\Plugin\views\argument_validator\User.

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 = array()) {

  // filter trash out of the options so we don't store giant unnecessary arrays
  $options['roles'] = array_filter($options['roles']);
}