You are here

ResettablePathMatcher.php in Tome 8

Namespace

Drupal\tome_static

File

modules/tome_static/src/ResettablePathMatcher.php
View source
<?php

namespace Drupal\tome_static;

use Drupal\Core\Path\PathMatcher;

/**
 * Decorates the path matcher to allow for resetting of static cache.
 *
 * @internal
 */
class ResettablePathMatcher extends PathMatcher {

  /**
   * Resets the static.
   */
  public function resetCache() {
    $this->isCurrentFrontPage = NULL;
  }

}

Classes

Namesort descending Description
ResettablePathMatcher Decorates the path matcher to allow for resetting of static cache.