public PathMatcherInterface::matchPath($path, $patterns)
Provides an interface for URL path matchers. Hierarchy interface \Drupal\Core\Path\
public PathMatcherInterface::isFrontPage()