function User::submitOptionsForm
Same name in other branches
- 9 core/modules/user/src/Plugin/views/argument_validator/User.php \Drupal\user\Plugin\views\argument_validator\User::submitOptionsForm()
- 8.9.x core/modules/user/src/Plugin/views/argument_validator/User.php \Drupal\user\Plugin\views\argument_validator\User::submitOptionsForm()
- 11.x core/modules/user/src/Plugin/views/argument_validator/User.php \Drupal\user\Plugin\views\argument_validator\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_validatorCode
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.