getpathtranslation invalid path temporary workarround

This commit is contained in:
Bachir Soussi Chiadmi 2021-03-08 14:43:43 +01:00
parent 7e460b9764
commit 88f7b8c285
1 changed files with 2 additions and 2 deletions

View File

@ -55,8 +55,8 @@ class MaterioDecoupledLanguageLinks extends ControllerBase {
if (!$url_object) {
// if path does not exists rtuen an error
return new JsonResponse(array(
"links" = [],
"error" = "path {$path} is not valid"
"links" => [],
"error" => "path {$path} is not valid"
));
}
$route_name = $url_object->getRouteName();