function User::defineOptions
Same name in this branch
- 11.x core/modules/user/src/Plugin/views/argument_validator/User.php \Drupal\user\Plugin\views\argument_validator\User::defineOptions()
Same name in other branches
- 9 core/modules/user/src/Plugin/views/argument_validator/User.php \Drupal\user\Plugin\views\argument_validator\User::defineOptions()
- 9 core/modules/user/src/Plugin/views/argument_default/User.php \Drupal\user\Plugin\views\argument_default\User::defineOptions()
- 8.9.x core/modules/user/src/Plugin/views/argument_validator/User.php \Drupal\user\Plugin\views\argument_validator\User::defineOptions()
- 8.9.x core/modules/user/src/Plugin/views/argument_default/User.php \Drupal\user\Plugin\views\argument_default\User::defineOptions()
- 10 core/modules/user/src/Plugin/views/argument_validator/User.php \Drupal\user\Plugin\views\argument_validator\User::defineOptions()
- 10 core/modules/user/src/Plugin/views/argument_default/User.php \Drupal\user\Plugin\views\argument_default\User::defineOptions()
Overrides ArgumentDefaultPluginBase::defineOptions
File
-
core/
modules/ user/ src/ Plugin/ views/ argument_default/ User.php, line 65
Class
- User
- Default argument plugin to extract a user from request.
Namespace
Drupal\user\Plugin\views\argument_defaultCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['user'] = [
'default' => '',
];
return $options;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.