You are here

protected function UserStorage::isColumnSerial in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/user/src/UserStorage.php \Drupal\user\UserStorage::isColumnSerial()

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\SqlContentEntityStorageSchema::processRevisionTable()

File

core/modules/user/src/UserStorage.php, line 88
Contains \Drupal\user\UserStorage.

Class

UserStorage
Controller class for users.

Namespace

Drupal\user

Code

protected function isColumnSerial($table_name, $schema_name) {

  // User storage does not use a serial column for the user id.
  return $table_name == $this->revisionTable && $schema_name == $this->revisionKey;
}