You are here

class LazyResettableContextRepository in Tome 8

Decorates the context repository to allow for resetting of contexts.

@internal

Hierarchy

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
tome_static.context.repository in modules/tome_static/tome_static.services.yml
Drupal\tome_static\LazyResettableContextRepository

File

modules/tome_static/src/LazyResettableContextRepository.php, line 12

Namespace

Drupal\tome_static
View source
class LazyResettableContextRepository extends LazyContextRepository {

  /**
   * Resets the context cache.
   */
  public function resetCache() {
    $this->contexts = [];
  }

}

Members

Namesort descending Modifiers Type Description Overrides
LazyContextRepository::$container protected property The service container.
LazyContextRepository::$contextProviderServiceIDs protected property The set of available context providers service IDs.
LazyContextRepository::$contexts protected property The statically cached contexts.
LazyContextRepository::getAvailableContexts public function Gets all available contexts for the purposes of configuration. Overrides ContextRepositoryInterface::getAvailableContexts
LazyContextRepository::getRuntimeContexts public function Gets runtime context values for the given context IDs. Overrides ContextRepositoryInterface::getRuntimeContexts
LazyContextRepository::__construct public function Constructs a LazyContextRepository object.
LazyResettableContextRepository::resetCache public function Resets the context cache.