public function User::submitOptionsForm in Drupal 10
Same name and namespace in other branches
- 8 core/modules/user/src/Plugin/views/argument_validator/User.php \Drupal\user\Plugin\views\argument_validator\User::submitOptionsForm()
- 9 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 78
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']);
}