SqlContentEntityStorageSchema::getEntityIndexName

protected SqlContentEntityStorageSchema::getEntityIndexName(ContentEntityTypeInterface $entity_type, $index)

Gets the name to be used for the given entity index.

Parameters

\Drupal\Core\Entity\ContentEntityTypeInterface $entity_type: The entity type.

string $index: The index column name.

Return value

string The index name.

File

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

Class

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

Namespace

Drupal\Core\Entity\Sql

Code

protected function getEntityIndexName(ContentEntityTypeInterface $entity_type, $index) {
  return $entity_type->id() . '__' . $index;
}
doc_Drupal
2016-10-29 09:43:37
Comments
Leave a Comment

Please login to continue.