external_entity-1.0.x-dev/src/Cache/ExternalEntityDatabaseBackendFactory.php

src/Cache/ExternalEntityDatabaseBackendFactory.php
<?php

declare(strict_types=1);

namespace Drupal\external_entity\Cache;

use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Cache\DatabaseBackendFactory;

/**
 * Define the external entity database factory.
 */
class ExternalEntityDatabaseBackendFactory extends DatabaseBackendFactory {

  /**
   * {@inheritDoc}
   */
  public function get($bin): CacheBackendInterface {
    $max_rows = $this->getMaxRowsForBin($bin);

    return new ExternalEntityDatabaseBackend(
      $this->connection,
      $this->checksumProvider,
      $bin,
      $this->serializer,
      $this->time,
      $max_rows
    );
  }

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc