Constructs the State object.

Paramètres

\Drupal\Core\KeyValueStore\KeyValueFactoryInterface $key_value_factory: The key value store to use.

\Drupal\Core\Cache\CacheBackendInterface $cache: The cache object to use.

\Drupal\Core\Lock\LockBackendInterface $lock: The lock object to use.

Fichier

src/State/Aggregates.php, line 25

Classe

Aggregates
Provides AdvAgg with saved aggregrate information using a key value store.

Namespace

Drupal\advagg\State

Code

public function __construct(KeyValueFactoryInterface $key_value_factory, CacheBackendInterface $cache, LockBackendInterface $lock) {
    parent::__construct($key_value_factory, $cache, $lock);
    $this->keyValueStore = $key_value_factory->get('advagg_aggregates');
    $this->pathColumn = 'uri';
}