LinkCheckerLinkStorageSchema.php in Link checker 8
File
src/LinkCheckerLinkStorageSchema.php
View source
<?php
namespace Drupal\linkchecker;
use Drupal\Core\Entity\ContentEntityTypeInterface;
use Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema;
class LinkCheckerLinkStorageSchema extends SqlContentEntityStorageSchema {
protected function getEntitySchema(ContentEntityTypeInterface $entity_type, $reset = FALSE) {
$schema = parent::getEntitySchema($entity_type, $reset);
$schema['linkchecker_link']['indexes'] += [
'method' => [
'method',
],
'code' => [
'code',
],
'fail_count' => [
'fail_count',
],
'last_check' => [
'last_check',
],
];
return $schema;
}
}