UserAuthenticationController

Provides controllers for login, login status and logout via HTTP requests. Hierarchy class \Drupal\Core\Controller\ControllerBase implements ContainerInjectionInterface uses LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\user\Controller\UserAuthenticationController implements ContainerInjectionInterface File core/modules/user/src/Controller/UserAuthenticationController.php, line 24 Namespace Drupal\user\Controller

UserAuthenticationController::$csrfToken

The CSRF token generator. Type: \Drupal\Core\Access\CsrfTokenGenerator File core/modules/user/src/Controller/UserAuthenticationController.php, line 59 Class UserAuthenticationController Provides controllers for login, login status and logout via HTTP requests. Namespace Drupal\user\Controller Code protected $csrfToken;

UserAuth::__construct

public UserAuth::__construct(EntityManagerInterface $entity_manager, PasswordInterface $password_checker) Constructs a UserAuth object. Parameters \Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager. \Drupal\Core\Password\PasswordInterface $password_checker: The password service. File core/modules/user/src/UserAuth.php, line 35 Class UserAuth Validates user authentication credentials. Namespace Drupal\user Code public function __construct(EntityManagerInterf

UserAuth::$entityManager

The entity manager. Type: \Drupal\Core\Entity\EntityManagerInterface File core/modules/user/src/UserAuth.php, line 18 Class UserAuth Validates user authentication credentials. Namespace Drupal\user Code protected $entityManager;

UserAuth::authenticate

public UserAuth::authenticate($username, $password) Validates user authentication credentials. Parameters string $username: The user name to authenticate. string $password: A plain-text password, such as trimmed text from form values. Return value int|bool The user's uid on success, or FALSE on failure to authenticate. Overrides UserAuthInterface::authenticate File core/modules/user/src/UserAuth.php, line 43 Class UserAuth Validates user authentication credentials. Namespace Drupal\us

UserAuth::$passwordChecker

The password hashing service. Type: \Drupal\Core\Password\PasswordInterface File core/modules/user/src/UserAuth.php, line 25 Class UserAuth Validates user authentication credentials. Namespace Drupal\user Code protected $passwordChecker;

UserAuth

Validates user authentication credentials. Hierarchy class \Drupal\user\UserAuth implements UserAuthInterface File core/modules/user/src/UserAuth.php, line 11 Namespace Drupal\user Members Name Modifiers Type Description UserAuth::$entityManager protected property The entity manager. UserAuth::$passwordChecker protected property The password hashing service. UserAuth::authenticate public function Validates user authentication credentials. Overrides UserAu

UserAccessControlHandler::$viewLabelOperation

Allow access to user label. Type: bool Overrides EntityAccessControlHandler::$viewLabelOperation File core/modules/user/src/UserAccessControlHandler.php, line 24 Class UserAccessControlHandler Defines the access control handler for the user entity type. Namespace Drupal\user Code protected $viewLabelOperation = TRUE;

UserAgent::getBestMatchingLangcode

public static UserAgent::getBestMatchingLangcode($http_accept_language, $langcodes, $mappings = array()) Identifies user agent language from the Accept-language HTTP header. The algorithm works as follows: map user agent language codes to available language codes. order all user agent language codes by qvalue from high to low. add generic user agent language codes if they aren't already specified but with a slightly lower qvalue. find the most specific available language code with the highest q

UserAccessControlHandler::checkAccess

protected UserAccessControlHandler::checkAccess(EntityInterface $entity, $operation, AccountInterface $account) Performs access checks. This method is supposed to be overwritten by extending classes that do their own custom access checking. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity for which to check access. string $operation: The entity operation. Usually one of 'view', 'view label', 'update' or 'delete'. \Drupal\Core\Session\AccountInterface $account: The user for wh