class ResettablePathMatcher in Tome 8
Decorates the path matcher to allow for resetting of static cache.
@internal
Hierarchy
- class \Drupal\Core\Path\PathMatcher implements PathMatcherInterface
- class \Drupal\tome_static\ResettablePathMatcher
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_staticView source
class ResettablePathMatcher extends PathMatcher {
/**
* Resets the static.
*/
public function resetCache() {
$this->isCurrentFrontPage = NULL;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PathMatcher:: |
protected | property | The config factory service. | |
PathMatcher:: |
protected | property | The default front page. | |
PathMatcher:: |
protected | property | Whether the current page is the front page. | |
PathMatcher:: |
protected | property | The cache of regular expressions. | |
PathMatcher:: |
protected | property | The current route match. | |
PathMatcher:: |
protected | function | Gets the current front page path. | |
PathMatcher:: |
public | function |
Checks if the current page is the front page. Overrides PathMatcherInterface:: |
|
PathMatcher:: |
public | function |
Checks if a path matches any pattern in a set of patterns. Overrides PathMatcherInterface:: |
|
PathMatcher:: |
public | function | Creates a new PathMatcher. | |
ResettablePathMatcher:: |
public | function | Resets the static. |