소스 검색

getpathtranslation invalid path temporary workarround

bach 4 년 전
부모
커밋
88f7b8c285
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      web/modules/custom/materio_decoupled/src/Controller/MaterioDecoupledLanguageLinks.php

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