StubPathMatcher.php
Namespace
Drupal\Tests\system\Kernel\BlockFile
-
core/
modules/ system/ tests/ src/ Kernel/ Block/ StubPathMatcher.php
View source
<?php
declare (strict_types=1);
namespace Drupal\Tests\system\Kernel\Block;
use Drupal\Core\Path\PathMatcher;
/**
* A class extending PatchMatcher for testing purposes.
*/
class StubPathMatcher extends PathMatcher {
/**
* {@inheritdoc}
*/
public function isFrontPage() : bool {
return FALSE;
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
StubPathMatcher | A class extending PatchMatcher for testing purposes. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.