You are here

public function UserStorage::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/user/src/UserStorage.php \Drupal\user\UserStorage::__construct()

Constructs a new UserStorage object.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.

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

\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.

\Drupal\Core\Cache\CacheBackendInterface $cache_backend: Cache backend instance to use.

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

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

Overrides SqlContentEntityStorage::__construct

File

core/modules/user/src/UserStorage.php, line 52
Contains \Drupal\user\UserStorage.

Class

UserStorage
Controller class for users.

Namespace

Drupal\user

Code

public function __construct(EntityTypeInterface $entity_type, Connection $database, EntityManagerInterface $entity_manager, CacheBackendInterface $cache, PasswordInterface $password, LanguageManagerInterface $language_manager) {
  parent::__construct($entity_type, $database, $entity_manager, $cache, $language_manager);
  $this->password = $password;
}