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

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

UserStorageInterface::updateLastLoginTimestamp

public UserStorageInterface::updateLastLoginTimestamp(UserInterface $account) Update the last login timestamp of the user. Parameters \Drupal\user\UserInterface $account: File core/modules/user/src/UserStorageInterface.php, line 18 Class UserStorageInterface Defines an interface for user entity storage classes. Namespace Drupal\user Code public function updateLastLoginTimestamp(UserInterface $account);

UserStorageInterface::updateLastAccessTimestamp

public UserStorageInterface::updateLastAccessTimestamp(AccountInterface $account, $timestamp) Update the last access timestamp of the user. Parameters \Drupal\Core\Session\AccountInterface $account: The user object. int $timestamp: The last access timestamp. File core/modules/user/src/UserStorageInterface.php, line 28 Class UserStorageInterface Defines an interface for user entity storage classes. Namespace Drupal\user Code public function updateLastAccessTimestamp(AccountInterface $a

UserStorageInterface::deleteRoleReferences

public UserStorageInterface::deleteRoleReferences(array $rids) Delete role references. Parameters array $rids: The list of role IDs being deleted. The storage should remove permission and user references to this role. File core/modules/user/src/UserStorageInterface.php, line 37 Class UserStorageInterface Defines an interface for user entity storage classes. Namespace Drupal\user Code public function deleteRoleReferences(array $rids);

UserStorageInterface

Defines an interface for user entity storage classes. Hierarchy interface \Drupal\Core\Entity\EntityStorageInterfaceinterface \Drupal\Core\Entity\ContentEntityStorageInterfaceinterface \Drupal\user\UserStorageInterface File core/modules/user/src/UserStorageInterface.php, line 11 Namespace Drupal\user Members Name Modifiers Type Description ContentEntityStorageInterface::createTranslation public function Constructs a new entity translation object, without permanently sa

UserStorage::updateLastLoginTimestamp

public UserStorage::updateLastLoginTimestamp(UserInterface $account) Update the last login timestamp of the user. Parameters \Drupal\user\UserInterface $account: Overrides UserStorageInterface::updateLastLoginTimestamp File core/modules/user/src/UserStorage.php, line 41 Class UserStorage Controller class for users. Namespace Drupal\user Code public function updateLastLoginTimestamp(UserInterface $account) { $this->database->update('users_field_data') ->fields(array('log

UserStorage::updateLastAccessTimestamp

public UserStorage::updateLastAccessTimestamp(AccountInterface $account, $timestamp) Update the last access timestamp of the user. Parameters \Drupal\Core\Session\AccountInterface $account: The user object. int $timestamp: The last access timestamp. Overrides UserStorageInterface::updateLastAccessTimestamp File core/modules/user/src/UserStorage.php, line 53 Class UserStorage Controller class for users. Namespace Drupal\user Code public function updateLastAccessTimestamp(AccountInterfa

UserStorage::isColumnSerial

protected UserStorage::isColumnSerial($table_name, $schema_name) Checks whether a field column should be treated as serial. Parameters $table_name: The name of the table the field column belongs to. $schema_name: The schema name of the field column. Return value bool TRUE if the column is serial, FALSE otherwise. Overrides SqlContentEntityStorage::isColumnSerial See also \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema::processBaseTable() \Drupal\Core\Entity\Sql\SqlContentEntityStorageS