function UserAuthentication::__construct
Same name and namespace in other branches
- 11.x core/modules/user/src/UserAuthentication.php \Drupal\user\UserAuthentication::__construct()
- 10 core/modules/user/src/UserAuthentication.php \Drupal\user\UserAuthentication::__construct()
Constructs a UserAuth object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager.
\Drupal\Core\Password\PasswordInterface $passwordChecker: The password service.
File
-
core/
modules/ user/ src/ UserAuthentication.php, line 21
Class
- UserAuthentication
- Validates user authentication credentials.
Namespace
Drupal\userCode
public function __construct(protected EntityTypeManagerInterface $entityTypeManager, protected PasswordInterface $passwordChecker) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.