You are here

public static function UserSelection::create 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::create()
  2. 9 core/modules/user/src/Plugin/EntityReferenceSelection/UserSelection.php \Drupal\user\Plugin\EntityReferenceSelection\UserSelection::create()

File

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

Class

UserSelection
Provides specific access control for the user entity type.

Namespace

Drupal\user\Plugin\EntityReferenceSelection

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  return new static($configuration, $plugin_id, $plugin_definition, $container
    ->get('entity_type.manager'), $container
    ->get('module_handler'), $container
    ->get('current_user'), $container
    ->get('database'), $container
    ->get('entity_field.manager'), $container
    ->get('entity_type.bundle.info'), $container
    ->get('entity.repository'));
}