Skip to content
Snippets Groups Projects

Deprecated issue fixed

@@ -367,7 +367,10 @@ protected function getRoutesByPath($path) {
// have a case-insensitive match from the incoming path to the lower case
// pattern outlines from \Drupal\Core\Routing\RouteCompiler::compile().
// @see \Drupal\Core\Routing\CompiledRoute::__construct()
$parts = preg_split('@/+@', mb_strtolower($path), -1, PREG_SPLIT_NO_EMPTY);
$parts = [];
if (!empty($path)) {
$parts = preg_split('@/+@', mb_strtolower($path), -1, PREG_SPLIT_NO_EMPTY);
}
$collection = new RouteCollection();
Loading