You are here

public function UserSelection::defaultConfiguration in Drupal 9

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

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

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