LazyResettableContextRepository.php in Tome 8
Namespace
Drupal\tome_staticFile
modules/tome_static/src/LazyResettableContextRepository.phpView source
<?php
namespace Drupal\tome_static;
use Drupal\Core\Plugin\Context\LazyContextRepository;
/**
* Decorates the context repository to allow for resetting of contexts.
*
* @internal
*/
class LazyResettableContextRepository extends LazyContextRepository {
/**
* Resets the context cache.
*/
public function resetCache() {
$this->contexts = [];
}
}
Classes
Name | Description |
---|---|
LazyResettableContextRepository | Decorates the context repository to allow for resetting of contexts. |