function UserRole::defaultConfiguration

Same name in other branches
  1. 9 core/modules/user/src/Plugin/Condition/UserRole.php \Drupal\user\Plugin\Condition\UserRole::defaultConfiguration()
  2. 8.9.x core/modules/user/src/Plugin/Condition/UserRole.php \Drupal\user\Plugin\Condition\UserRole::defaultConfiguration()
  3. 10 core/modules/user/src/Plugin/Condition/UserRole.php \Drupal\user\Plugin\Condition\UserRole::defaultConfiguration()

Overrides ConditionPluginBase::defaultConfiguration

File

core/modules/user/src/Plugin/Condition/UserRole.php, line 46

Class

UserRole
Provides a 'User Role' condition.

Namespace

Drupal\user\Plugin\Condition

Code

public function defaultConfiguration() {
    return [
        'roles' => [],
    ] + parent::defaultConfiguration();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.