You are here

protected function TemporaryTableMapping::generateFieldTableName in Drupal 8

Generates a safe and unambiguous field table name.

The method accounts for a maximum table name length of 64 characters, and takes care of disambiguation.

Parameters

\Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The field storage definition.

bool $revision: TRUE for revision table, FALSE otherwise.

Return value

string The final table name.

Overrides DefaultTableMapping::generateFieldTableName

File

core/lib/Drupal/Core/Entity/Sql/TemporaryTableMapping.php, line 20

Class

TemporaryTableMapping
Defines a temporary table mapping class.

Namespace

Drupal\Core\Entity\Sql

Code

protected function generateFieldTableName(FieldStorageDefinitionInterface $storage_definition, $revision) {
  return static::getTempTableName(parent::generateFieldTableName($storage_definition, $revision));
}