You are here

public function UserSelection::defaultConfiguration in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/user/src/Plugin/EntityReferenceSelection/UserSelection.php \Drupal\user\Plugin\EntityReferenceSelection\UserSelection::defaultConfiguration()
  2. 9 core/modules/user/src/Plugin/EntityReferenceSelection/UserSelection.php \Drupal\user\Plugin\EntityReferenceSelection\UserSelection::defaultConfiguration()

File

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

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();
}