
| Current Path : /var/www/html/rocksensor3/web/modules/contrib/redirect/src/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/rocksensor3/web/modules/contrib/redirect/src/RedirectStorageSchema.php |
<?php
namespace Drupal\redirect;
use Drupal\Core\Entity\ContentEntityTypeInterface;
use Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema;
/**
* Defines the redirect schema.
*/
class RedirectStorageSchema extends SqlContentEntityStorageSchema {
/**
* {@inheritdoc}
*/
protected function getEntitySchema(ContentEntityTypeInterface $entity_type, $reset = FALSE) {
$schema = parent::getEntitySchema($entity_type, $reset);
// Add indexes.
$schema['redirect']['unique keys'] += [
'hash' => ['hash'],
];
$schema['redirect']['indexes'] += [
// Limit length to 191.
'source_language' => [['redirect_source__path', 191], 'language'],
];
return $schema;
}
}