Browse Source

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

Bachir Soussi Chiadmi 5 years ago
parent
commit
9d75870f04

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