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;

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

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::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::$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

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

Provides user agent related utility functions. Hierarchy class \Drupal\Component\Utility\UserAgent Related topics Utility classes and functions Overview of utility classes and functions for developers. File core/lib/Drupal/Component/Utility/UserAgent.php, line 10 Namespace Drupal\Component\Utility Members Name Modifiers Type Description UserAgent::getBestMatchingLangcode public static function Identifies user agent language from the Accept-language HTTP header.

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