소스 검색

added user to cache context of entity json ajax from edlp_ajax module

Bachir Soussi Chiadmi 6 년 전
부모
커밋
9d75870f04
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      sites/all/modules/figli/edlp_ajax/src/Controller/EdlpAjaxController.php

+ 2 - 1
sites/all/modules/figli/edlp_ajax/src/Controller/EdlpAjaxController.php

@@ -240,7 +240,8 @@ class EdlpAjaxController extends ControllerBase {
         // $this->entity_type.':'.$this->id // not necessary as we add $renderable as CacheableMetadata to the response
       ],
       'contexts' => [
-        'languages:language_content'
+        'languages:language_content',
+        'user'
       ]
     ];