function TranslationLanguageRenderer::getCacheContexts

Same name in other branches
  1. 9 core/modules/views/src/Entity/Render/TranslationLanguageRenderer.php \Drupal\views\Entity\Render\TranslationLanguageRenderer::getCacheContexts()
  2. 8.9.x core/modules/views/src/Entity/Render/TranslationLanguageRenderer.php \Drupal\views\Entity\Render\TranslationLanguageRenderer::getCacheContexts()
  3. 10 core/modules/views/src/Entity/Render/TranslationLanguageRenderer.php \Drupal\views\Entity\Render\TranslationLanguageRenderer::getCacheContexts()

Overrides RendererBase::getCacheContexts

File

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

Class

TranslationLanguageRenderer
Renders entity translations in their row language.

Namespace

Drupal\views\Entity\Render

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.