You are here

LinkCheckerLinkStorageSchema.php in Link checker 8

Namespace

Drupal\linkchecker

File

src/LinkCheckerLinkStorageSchema.php
View source
<?php

namespace Drupal\linkchecker;

use Drupal\Core\Entity\ContentEntityTypeInterface;
use Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema;

/**
 * Defines the linkcheckerfile schema handler.
 */
class LinkCheckerLinkStorageSchema extends SqlContentEntityStorageSchema {

  /**
   * {@inheritdoc}
   */
  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;
  }

}

Classes

Namesort descending Description
LinkCheckerLinkStorageSchema Defines the linkcheckerfile schema handler.