public function PathMatcherInterface::matchPath
public PathMatcherInterface::matchPath($path, $patterns)
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.
File
- core/lib/Drupal/Core/Path/PathMatcherInterface.php, line 21
Class
- PathMatcherInterface
- Provides an interface for URL path matchers.
Namespace
Drupal\Core\PathCode
public function matchPath($path, $patterns);
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Path!PathMatcherInterface.php/function/PathMatcherInterface::matchPath/8.1.x