protected function SqlContentEntityStorageSchema::getEntityIndexName in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema::getEntityIndexName()
- 9 core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema::getEntityIndexName()
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.
4 calls to SqlContentEntityStorageSchema::getEntityIndexName()
- SqlContentEntityStorageSchema::getEntitySchema in core/
lib/ Drupal/ Core/ Entity/ Sql/ SqlContentEntityStorageSchema.php - Gets the entity schema for the specified entity type.
- SqlContentEntityStorageSchema::initializeBaseTable in core/
lib/ Drupal/ Core/ Entity/ Sql/ SqlContentEntityStorageSchema.php - Initializes common information for a base table.
- SqlContentEntityStorageSchema::initializeDataTable in core/
lib/ Drupal/ Core/ Entity/ Sql/ SqlContentEntityStorageSchema.php - Initializes common information for a data table.
- SqlContentEntityStorageSchema::initializeRevisionTable in core/
lib/ Drupal/ Core/ Entity/ Sql/ SqlContentEntityStorageSchema.php - Initializes common information for a revision table.
File
- core/
lib/ Drupal/ Core/ Entity/ Sql/ SqlContentEntityStorageSchema.php, line 2415
Class
- SqlContentEntityStorageSchema
- Defines a schema handler that supports revisionable, translatable entities.
Namespace
Drupal\Core\Entity\SqlCode
protected function getEntityIndexName(ContentEntityTypeInterface $entity_type, $index) {
return $entity_type
->id() . '__' . $index;
}