function SqlContentEntityStorage::isColumnSerial
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php \Drupal\Core\Entity\Sql\SqlContentEntityStorage::isColumnSerial()
- 10 core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php \Drupal\Core\Entity\Sql\SqlContentEntityStorage::isColumnSerial()
- 11.x core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php \Drupal\Core\Entity\Sql\SqlContentEntityStorage::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.
See also
\Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema::processBaseTable()
\Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema::processRevisionTable()
1 call to SqlContentEntityStorage::isColumnSerial()
- SqlContentEntityStorage::mapToStorageRecord in core/
lib/ Drupal/ Core/ Entity/ Sql/ SqlContentEntityStorage.php - Maps from an entity object to the storage record.
1 method overrides SqlContentEntityStorage::isColumnSerial()
- UserStorage::isColumnSerial in core/
modules/ user/ src/ UserStorage.php - Checks whether a field column should be treated as serial.
File
-
core/
lib/ Drupal/ Core/ Entity/ Sql/ SqlContentEntityStorage.php, line 1119
Class
- SqlContentEntityStorage
- A content entity database storage implementation.
Namespace
Drupal\Core\Entity\SqlCode
protected function isColumnSerial($table_name, $schema_name) {
$result = FALSE;
switch ($table_name) {
case $this->baseTable:
$result = $schema_name == $this->idKey;
break;
case $this->revisionTable:
$result = $schema_name == $this->revisionKey;
break;
}
return $result;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.