public function UserRole::defaultConfiguration in Drupal 10
Same name and namespace in other branches
- 8 core/modules/user/src/Plugin/Condition/UserRole.php \Drupal\user\Plugin\Condition\UserRole::defaultConfiguration()
- 9 core/modules/user/src/Plugin/Condition/UserRole.php \Drupal\user\Plugin\Condition\UserRole::defaultConfiguration()
File
- core/
modules/ user/ src/ Plugin/ Condition/ UserRole.php, line 38
Class
- UserRole
- Provides a 'User Role' condition.
Namespace
Drupal\user\Plugin\ConditionCode
public function defaultConfiguration() {
return [
'roles' => [],
] + parent::defaultConfiguration();
}