user_cookie_delete

user_cookie_delete($cookie_name) Delete a visitor information cookie. Parameters string $cookie_name: A cookie name such as 'homepage'. File core/modules/user/user.module, line 1300 Enables the user registration and login system. Code function user_cookie_delete($cookie_name) { setrawcookie('Drupal.visitor.' . $cookie_name, '', REQUEST_TIME - 3600, '/'); }

user_cookie_save

user_cookie_save(array $values) Saves visitor information as a cookie so it can be reused. Parameters array $values: An array of key/value pairs to be saved into a cookie. File core/modules/user/user.module, line 1287 Enables the user registration and login system. Code function user_cookie_save(array $values) { foreach ($values as $field => $value) { // Set cookie for 365 days. setrawcookie('Drupal.visitor.' . $field, rawurlencode($value), REQUEST_TIME + 31536000, '/'); } }

user_element_info_alter

user_element_info_alter(array &$types) Implements hook_element_info_alter(). File core/modules/user/user.module, line 1227 Enables the user registration and login system. Code function user_element_info_alter(array &$types) { if (isset($types['password_confirm'])) { $types['password_confirm']['#process'][] = 'user_form_process_password_confirm'; } }

user_delete

user_delete($uid) Delete a user. Parameters int $uid: A user ID. File core/modules/user/user.module, line 844 Enables the user registration and login system. Code function user_delete($uid) { user_delete_multiple(array($uid)); }

user_cancel

user_cancel($edit, $uid, $method) Cancel a user account. Since the user cancellation process needs to be run in a batch, either Form API will invoke it, or batch_process() needs to be invoked after calling this function and should define the path to redirect to. Parameters array $edit: An array of submitted form values. int $uid: The user ID of the user account to cancel. string $method: The account cancellation method to use. See also _user_cancel() File core/modules/user/user.module, line 6

user_cancel_methods

user_cancel_methods() Helper function to return available account cancellation methods. See documentation of hook_user_cancel_methods_alter(). Return value array An array containing all account cancellation methods as form elements. See also hook_user_cancel_methods_alter() user_admin_settings() File core/modules/user/user.module, line 793 Enables the user registration and login system. Code function user_cancel_methods() { $user_settings = \Drupal::config('user.settings'); $anonymous_n

UserViewsData::getViewsData

public UserViewsData::getViewsData() Returns views data for the entity type. Return value array Views data in the format of hook_views_data(). Overrides EntityViewsData::getViewsData File core/modules/user/src/UserViewsData.php, line 15 Class UserViewsData Provides the views data for the user entity type. Namespace Drupal\user Code public function getViewsData() { $data = parent::getViewsData(); $data['users_field_data']['table']['base']['help'] = $this->t('Users who have crea

user_cancel_url

user_cancel_url(UserInterface $account, $options = array()) Generates a URL to confirm an account cancellation request. Parameters \Drupal\user\UserInterface $account: The user account object. array $options: (optional) A keyed array of settings. Supported options are: langcode: A language code to be used when generating locale-sensitive URLs. If langcode is NULL the users preferred language is used. Return value string A unique URL that may be used to confirm the cancellation of the user

UserViewsData

Provides the views data for the user entity type. Hierarchy class \Drupal\views\EntityViewsData implements EntityHandlerInterface, EntityViewsDataInterface uses StringTranslationTraitclass \Drupal\user\UserViewsData File core/modules/user/src/UserViewsData.php, line 10 Namespace Drupal\user Members Name Modifiers Type Description EntityViewsData::$entityManager protected property The entity manager. EntityViewsData::$entityType protected property Entity type for

UserStorageSchema::processIdentifierSchema

protected UserStorageSchema::processIdentifierSchema(&$schema, $key) Processes the specified entity key. Parameters array $schema: The table schema, passed by reference. string $key: The entity key name. Overrides SqlContentEntityStorageSchema::processIdentifierSchema File core/modules/user/src/UserStorageSchema.php, line 30 Class UserStorageSchema Defines the user schema handler. Namespace Drupal\user Code protected function processIdentifierSchema(&$schema, $key) { // The