user_user_role_insert

user_user_role_insert(RoleInterface $role) Implements hook_ENTITY_TYPE_insert() for user_role entities. File core/modules/user/user.module, line 982 Enables the user registration and login system. Code function user_user_role_insert(RoleInterface $role) { // Ignore the authenticated and anonymous roles or the role is being synced. if (in_array($role->id(), array(RoleInterface::AUTHENTICATED_ID, RoleInterface::ANONYMOUS_ID)) || $role->isSyncing()) { return; } $add_id = 'user

user_user_role_delete

user_user_role_delete(RoleInterface $role) Implements hook_ENTITY_TYPE_delete() for user_role entities. File core/modules/user/user.module, line 1019 Enables the user registration and login system. Code function user_user_role_delete(RoleInterface $role) { // Delete role references for all users. $user_storage = \Drupal::entityManager()->getStorage('user'); $user_storage->deleteRoleReferences(array($role->id())); // Ignore the authenticated and anonymous roles or the role is

user_user_logout

user_user_logout($account) Implements hook_user_logout(). File core/modules/user/user.module, line 561 Enables the user registration and login system. Code function user_user_logout($account) { // Reset static cache of default variables in template_preprocess() to reflect // the new user. drupal_static_reset('template_preprocess'); }

user_user_login

user_user_login($account) Implements hook_user_login(). File core/modules/user/user.module, line 552 Enables the user registration and login system. Code function user_user_login($account) { // Reset static cache of default variables in template_preprocess() to reflect // the new user. drupal_static_reset('template_preprocess'); }

user_toolbar

user_toolbar() Implements hook_toolbar(). File core/modules/user/user.module, line 1307 Enables the user registration and login system. Code function user_toolbar() { $user = \Drupal::currentUser(); // Add logout & user account links or login link. $links_cache_contexts = []; if ($user->isAuthenticated()) { $links = array( 'account' => array( 'title' => t('View profile'), 'url' => Url::fromRoute('user.page'), 'attributes' => array(

user_theme

user_theme() Implements hook_theme(). File core/modules/user/user.module, line 97 Enables the user registration and login system. Code function user_theme() { return array( 'user' => array( 'render element' => 'elements', ), 'username' => array( 'variables' => array('account' => NULL, 'attributes' => array(), 'link_options' => array()), ), ); }

user_template_preprocess_default_variables_alter

user_template_preprocess_default_variables_alter(&$variables) Implements hook_template_preprocess_default_variables_alter(). See also user_user_login() user_user_logout() File core/modules/user/user.module, line 435 Enables the user registration and login system. Code function user_template_preprocess_default_variables_alter(&$variables) { $user = \Drupal::currentUser(); $variables['user'] = clone $user; // Remove password and session IDs, since themes should not need nor see

user_schema

user_schema() Implements hook_schema(). File core/modules/user/user.install, line 11 Install, update and uninstall functions for the user module. Code function user_schema() { $schema['users_data'] = array( 'description' => 'Stores module data as key/value pairs per user.', 'fields' => array( 'uid' => array( 'description' => 'Primary key: {users}.uid for user.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE,

user_role_revoke_permissions

user_role_revoke_permissions($rid, array $permissions = array()) Revoke permissions from a user role. Parameters mixed $rid: The ID of a user role to alter. array $permissions: (optional) A list of permission names to revoke. See also user_role_change_permissions() user_role_grant_permissions() File core/modules/user/user.module, line 1160 Enables the user registration and login system. Code function user_role_revoke_permissions($rid, array $permissions = array()) { // Revoke permissions

user_role_permissions

user_role_permissions(array $roles) Determine the permissions for one or more roles. Parameters array $roles: An array of role IDs. Return value array An array indexed by role ID. Each value is an array of permission strings for the given role. File core/modules/user/user.module, line 319 Enables the user registration and login system. Code function user_role_permissions(array $roles) { if (defined('MAINTENANCE_MODE') && MAINTENANCE_MODE == 'update') { return _user_role_permis