SqlContentEntityStorageSchema::getFieldIndexName

protected SqlContentEntityStorageSchema::getFieldIndexName(FieldStorageDefinitionInterface $storage_definition, $index)

Generates an index name for a field data table.

Parameters

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

string $index: The name of the index.

Return value

string A string containing a generated index name for a field data table that is unique among all other fields.

File

core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php, line 1911

Class

SqlContentEntityStorageSchema
Defines a schema handler that supports revisionable, translatable entities.

Namespace

Drupal\Core\Entity\Sql

Code

protected function getFieldIndexName(FieldStorageDefinitionInterface $storage_definition, $index) {
  return $storage_definition->getName() . '_' . $index;
}
doc_Drupal
2016-10-29 09:43:38
Comments
Leave a Comment

Please login to continue.