瀏覽代碼

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'
       ]
     ];