class LazyResettableContextRepository in Tome 8
Decorates the context repository to allow for resetting of contexts.
@internal
Hierarchy
- class \Drupal\Core\Plugin\Context\LazyContextRepository implements ContextRepositoryInterface
- class \Drupal\tome_static\LazyResettableContextRepository
Expanded class hierarchy of LazyResettableContextRepository
1 string reference to 'LazyResettableContextRepository'
- tome_static.services.yml in modules/
tome_static/ tome_static.services.yml - modules/tome_static/tome_static.services.yml
1 service uses LazyResettableContextRepository
File
- modules/
tome_static/ src/ LazyResettableContextRepository.php, line 12
Namespace
Drupal\tome_staticView source
class LazyResettableContextRepository extends LazyContextRepository {
/**
* Resets the context cache.
*/
public function resetCache() {
$this->contexts = [];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LazyContextRepository:: |
protected | property | The service container. | |
LazyContextRepository:: |
protected | property | The set of available context providers service IDs. | |
LazyContextRepository:: |
protected | property | The statically cached contexts. | |
LazyContextRepository:: |
public | function |
Gets all available contexts for the purposes of configuration. Overrides ContextRepositoryInterface:: |
|
LazyContextRepository:: |
public | function |
Gets runtime context values for the given context IDs. Overrides ContextRepositoryInterface:: |
|
LazyContextRepository:: |
public | function | Constructs a LazyContextRepository object. | |
LazyResettableContextRepository:: |
public | function | Resets the context cache. |