Преглед на файлове

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