public function TranslationLanguageRenderer::getCacheContexts in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views/src/Entity/Render/TranslationLanguageRenderer.php \Drupal\views\Entity\Render\TranslationLanguageRenderer::getCacheContexts()
- 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\RenderCode
public function getCacheContexts() {
return [
'languages:' . LanguageInterface::TYPE_CONTENT,
];
}