You are here

public function TranslationLanguageRenderer::getCacheContexts in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/src/Entity/Render/TranslationLanguageRenderer.php \Drupal\views\Entity\Render\TranslationLanguageRenderer::getCacheContexts()
  2. 9 core/modules/views/src/Entity/Render/TranslationLanguageRenderer.php \Drupal\views\Entity\Render\TranslationLanguageRenderer::getCacheContexts()

File

core/modules/views/src/Entity/Render/TranslationLanguageRenderer.php, line 112

Class

TranslationLanguageRenderer
Renders entity translations in their row language.

Namespace

Drupal\views\Entity\Render

Code

public function getCacheContexts() {
  return [
    'languages:' . LanguageInterface::TYPE_CONTENT,
  ];
}