function UserSelection::defaultConfiguration

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

Overrides DefaultSelection::defaultConfiguration

File

core/modules/user/src/Plugin/EntityReferenceSelection/UserSelection.php, line 91

Class

UserSelection
Provides specific access control for the user entity type.

Namespace

Drupal\user\Plugin\EntityReferenceSelection

Code

public function defaultConfiguration() {
    return [
        'filter' => [
            'type' => '_none',
            'role' => NULL,
        ],
        'include_anonymous' => TRUE,
    ] + parent::defaultConfiguration();
}

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