Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TranslationLanguageRenderer.php

function 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,
    ];
}
RSS feed
Powered by Drupal