class Aggregates in Advanced CSS/JS Aggregation 8.2
Provides AdvAgg with saved aggregrate information using a key value store.
Hierarchy
- class \Drupal\Core\State\State implements StateInterface
- class \Drupal\advagg\State\State
- class \Drupal\advagg\State\Aggregates implements StateInterface
- class \Drupal\advagg\State\State
Expanded class hierarchy of Aggregates
1 string reference to 'Aggregates'
1 service uses Aggregates
File
- src/
State/ Aggregates.php, line 13
Namespace
Drupal\advagg\StateView source
class Aggregates extends State implements StateInterface {
/**
* Constructs the State object.
*
* @param \Drupal\Core\KeyValueStore\KeyValueFactoryInterface $key_value_factory
* The key value store to use.
* @param \Drupal\Core\Cache\CacheBackendInterface $cache
* The cache object to use.
* @param \Drupal\Core\Lock\LockBackendInterface $lock
* The lock object to use.
*/
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';
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Aggregates:: |
public | function |
Constructs the State object. Overrides State:: |
|
State:: |
protected | property | Static state cache. | |
State:: |
protected | property | The key value store to use. | |
State:: |
protected | property | If the array isn't keyed by filepath the column the filepath is stored in. | |
State:: |
public | function | Scan the filesystem for missing files and removee from database. | |
State:: |
public | function |
Deletes an item. Overrides StateInterface:: |
|
State:: |
public | function | Delete all stored information from this Key Value Store. | |
State:: |
public | function |
Deletes multiple items. Overrides StateInterface:: |
|
State:: |
public | function |
Returns the stored value for a given key. Overrides StateInterface:: |
|
State:: |
public | function | Gets all stored information from this Key Value Store. | |
State:: |
public | function |
Returns the stored key/value pairs for a given set of keys. Overrides StateInterface:: |
|
State:: |
public | function | Get a semi-random (randomness not guaranteed) value. | |
State:: |
public | function | Get a semi-random (randomness not guaranteed) key. | |
State:: |
public | function |
Resets the static cache. Overrides StateInterface:: |
|
State:: |
public | function |
Saves a value for a given key. Overrides StateInterface:: |
|
State:: |
public | function |
Saves key/value pairs. Overrides StateInterface:: |