class StubPathMatcher

A class extending PatchMatcher for testing purposes.

Hierarchy

Expanded class hierarchy of StubPathMatcher

File

core/modules/system/tests/src/Kernel/Block/StubPathMatcher.php, line 12

Namespace

Drupal\Tests\system\Kernel\Block
View source
class StubPathMatcher extends PathMatcher {
    
    /**
     * {@inheritdoc}
     */
    public function isFrontPage() : bool {
        return FALSE;
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
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::matchPath public function Overrides PathMatcherInterface::matchPath
PathMatcher::__construct public function Creates a new PathMatcher.
StubPathMatcher::isFrontPage public function Overrides PathMatcher::isFrontPage

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.