3 namespace Drupal\Core\Path;
6 * Provides an interface for URL path matchers.
8 interface PathMatcherInterface {
11 * Checks if a path matches any pattern in a set of patterns.
15 * @param string $patterns
16 * A set of patterns separated by a newline.
19 * TRUE if the path matches a pattern, FALSE otherwise.
21 public function matchPath($path, $patterns);
24 * Checks if the current page is the front page.
27 * TRUE if the current page is the front page.
29 public function isFrontPage();