function AliasPathMatcher::matchPath
Checks if a path matches any pattern in a set of patterns.
Parameters
string $path: The path to match.
string $patterns: A set of patterns separated by a newline.
Return value
bool TRUE if the path matches a pattern, FALSE otherwise.
Overrides PathMatcherInterface::matchPath
File
-
core/
modules/ path_alias/ src/ AliasPathMatcher.php, line 32
Class
- AliasPathMatcher
- Extends the default path matcher to check aliases.
Namespace
Drupal\path_aliasCode
public function matchPath($path, $patterns) {
return $this->decorated
->matchPath($path, $patterns);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.