You are here

LazyResettableContextRepository.php in Tome 8

Namespace

Drupal\tome_static

File

modules/tome_static/src/LazyResettableContextRepository.php
View 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

Namesort descending Description
LazyResettableContextRepository Decorates the context repository to allow for resetting of contexts.