Commit 77a795ab authored by alexpott's avatar alexpott

Issue #2388631 by JeroenT: Remove drupal_match_path()

parent 5b06c5ba
......@@ -20,21 +20,3 @@
function drupal_is_front_page() {
return \Drupal::service('path.matcher')->isFrontPage();
}
/**
* Check if a path matches any pattern in a set of patterns.
*
* @param $path
* The path to match.
* @param $patterns
* String containing a set of patterns separated by \n, \r or \r\n.
*
* @return
* Boolean value: TRUE if the path matches a pattern, FALSE otherwise.
*
* @deprecated as of Drupal 8.0. Use
* \Drupal\Core\Path\PathMatcherInterface::matchPath() instead.
*/
function drupal_match_path($path, $patterns) {
return \Drupal::service('path.matcher')->matchPath($path, $patterns);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment