class PathAliasStorageSchema
Same name and namespace in other branches
- 11.x core/modules/path_alias/src/PathAliasStorageSchema.php \Drupal\path_alias\PathAliasStorageSchema
Defines the path_alias schema handler.
Hierarchy
- class \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema extends \Drupal\Core\Entity\Schema\DynamicallyFieldableEntityStorageSchemaInterface uses \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Entity\Sql\SqlFieldableEntityTypeListenerTrait
- class \Drupal\path_alias\PathAliasStorageSchema implements \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema
Expanded class hierarchy of PathAliasStorageSchema
File
-
core/
modules/ path_alias/ src/ PathAliasStorageSchema.php, line 11
Namespace
Drupal\path_aliasView source
class PathAliasStorageSchema extends SqlContentEntityStorageSchema {
/**
* {@inheritdoc}
*/
protected function getEntitySchema(ContentEntityTypeInterface $entity_type, $reset = FALSE) {
$schema = parent::getEntitySchema($entity_type, $reset);
$schema[$this->storage
->getBaseTable()]['indexes'] += [
'path_alias__alias_langcode_id_status' => [
'alias',
'langcode',
'id',
'status',
],
'path_alias__path_langcode_id_status' => [
'path',
'langcode',
'id',
'status',
],
];
return $schema;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.