public PathMatcherInterface::matchPath($path, $patterns)
Checks if a path matches any pattern in a set of patterns.
string $path: The path to match.
string $patterns: A set of patterns separated by a newline.
bool TRUE if the path matches a pattern, FALSE otherwise.
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