tryed to fix agenda translation
This commit is contained in:
@@ -102,9 +102,11 @@ class AgendaController extends ControllerBase {
|
||||
|
||||
$data['#cache'] = [
|
||||
'max-age' => \Drupal\Core\Cache\Cache::PERMANENT,
|
||||
'tags' => ['edlp-agenda-cache']
|
||||
'tags' => ['edlp-agenda-cache'],
|
||||
'contexts' => [
|
||||
'languages:language_content'
|
||||
]
|
||||
];
|
||||
|
||||
// $response = new JsonResponse();
|
||||
// $response->setData($data);
|
||||
$response = new CacheableJsonResponse($data);
|
||||
|
||||
Reference in New Issue
Block a user