You are here

class ResettablePathMatcher in Tome 8

Decorates the path matcher to allow for resetting of static cache.

@internal

Hierarchy

Expanded class hierarchy of ResettablePathMatcher

1 string reference to 'ResettablePathMatcher'
tome_static.services.yml in modules/tome_static/tome_static.services.yml
modules/tome_static/tome_static.services.yml
1 service uses ResettablePathMatcher
tome_static.path.matcher in modules/tome_static/tome_static.services.yml
Drupal\tome_static\ResettablePathMatcher

File

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

Namespace

Drupal\tome_static
View source
class ResettablePathMatcher extends PathMatcher {

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

}

Members

Namesort descending Modifiers Type Description Overrides
PathMatcher::$configFactory protected property The config factory service.
PathMatcher::$frontPage protected property The default front page.
PathMatcher::$isCurrentFrontPage protected property Whether the current page is the front page.
PathMatcher::$regexes protected property The cache of regular expressions.
PathMatcher::$routeMatch protected property The current route match.
PathMatcher::getFrontPagePath protected function Gets the current front page path.
PathMatcher::isFrontPage public function Checks if the current page is the front page. Overrides PathMatcherInterface::isFrontPage
PathMatcher::matchPath public function Checks if a path matches any pattern in a set of patterns. Overrides PathMatcherInterface::matchPath
PathMatcher::__construct public function Creates a new PathMatcher.
ResettablePathMatcher::resetCache public function Resets the static.