UserAccessControlHandler

Defines the access control handler for the user entity type. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityAccessControlHandler implements EntityAccessControlHandlerInterfaceclass \Drupal\user\UserAccessControlHandler See also \Drupal\user\Entity\User File core/modules/user/src/UserAccessControlHandler.php, line 17 Namespace Drupal\user Members Name Modifiers Type Description De

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;

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

UserAccessControlHandler::checkFieldAccess

protected UserAccessControlHandler::checkFieldAccess($operation, FieldDefinitionInterface $field_definition, AccountInterface $account, FieldItemListInterface $items = NULL) Default field access as determined by this access control handler. Parameters string $operation: The operation access should be checked for. Usually one of "view" or "edit". \Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition. \Drupal\Core\Session\AccountInterface $account: The user session

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

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

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