UserStorageSchema

Defines the user schema handler. Hierarchy class \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema implements DynamicallyFieldableEntityStorageSchemaInterface uses DependencySerializationTraitclass \Drupal\user\UserStorageSchema File core/modules/user/src/UserStorageSchema.php, line 12 Namespace Drupal\user Members Name Modifiers Type Description DependencySerializationTrait::$_serviceIds protected property An array of service IDs keyed by property name used for ser

UserStorageSchema::getEntitySchema

protected UserStorageSchema::getEntitySchema(ContentEntityTypeInterface $entity_type, $reset = FALSE) Gets the entity schema for the specified entity type. Entity types may override this method in order to optimize the generated schema of the entity tables. However, only cross-field optimizations should be added here; e.g., an index spanning multiple fields. Optimizations that apply to a single field have to be added via SqlContentEntityStorageSchema::getSharedTableFieldSchema() instead. Parame

UserStorageSchema::getSharedTableFieldSchema

protected UserStorageSchema::getSharedTableFieldSchema(FieldStorageDefinitionInterface $storage_definition, $table_name, array $column_mapping) Gets the schema for a single field definition. Entity types may override this method in order to optimize the generated schema for given field. While all optimizations that apply to a single field have to be added here, all cross-field optimizations should be via SqlContentEntityStorageSchema::getEntitySchema() instead; e.g., an index spanning multiple

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

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

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

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

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

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, '/'); }