public function UserStorageController::__construct

Constructs a new UserStorageController object.

Parameters

string $entityType: The entity type for which the instance is created.

array $entity_info: An array of entity info for the entity type.

\Drupal\Core\Database\Connection $database: The database connection to be used.

\Drupal\Core\Password\PasswordInterface $password: The password hashing service.

\Drupal\user\UserDataInterface $user_data: The user data service.

Overrides DatabaseStorageControllerNG::__construct

File

drupal/core/modules/user/lib/Drupal/user/UserStorageController.php, line 54
Definition of Drupal\user\UserStorageController.

Class

UserStorageController
Controller class for users.

Namespace

Drupal\user

Code

public function __construct($entity_type, $entity_info, Connection $database, PasswordInterface $password, UserDataInterface $user_data) {
  parent::__construct($entity_type, $entity_info, $database);
  $this->password = $password;
  $this->userData = $user_data;
}