function User::defineOptions
Overrides Entity::defineOptions
File
-
core/
modules/ user/ src/ Plugin/ views/ argument_validator/ User.php, line 43
Class
- User
- Validate whether an argument is a valid user.
Namespace
Drupal\user\Plugin\views\argument_validatorCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['restrict_roles'] = [
'default' => FALSE,
];
$options['roles'] = [
'default' => [],
];
return $options;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.