You are here

protected function UserStorage::isColumnSerial in Drupal 8

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 33

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;
}