
| Current Path : /var/www/html/store/web/modules/contrib/profile/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/store/web/modules/contrib/profile/src/ProfileStorageSchema.php |
<?php
namespace Drupal\profile;
use Drupal\Core\Entity\ContentEntityTypeInterface;
use Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema;
/**
* Defines the profile schema handler.
*/
class ProfileStorageSchema extends SqlContentEntityStorageSchema {
/**
* {@inheritdoc}
*/
protected function getEntitySchema(ContentEntityTypeInterface $entity_type, $reset = FALSE) {
$schema = parent::getEntitySchema($entity_type, $reset);
if ($base_table = $this->storage->getBaseTable()) {
$schema[$base_table]['indexes'] += [
'profile__uid_type_status_is_default' => [
'uid',
'type',
'status',
'is_default',
],
];
}
return $schema;
}
}