Browse Source

getpathtranslation invalid path temporary workarround

bach 3 years ago
parent
commit
88f7b8c285

+ 2 - 2
web/modules/custom/materio_decoupled/src/Controller/MaterioDecoupledLanguageLinks.php

@@ -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();