function RendererBase::getCacheContexts

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

Overrides CacheableDependencyInterface::getCacheContexts

2 methods override RendererBase::getCacheContexts()
EntityFieldRenderer::getCacheContexts in core/modules/views/src/Entity/Render/EntityFieldRenderer.php
The cache contexts associated with this object.
TranslationLanguageRenderer::getCacheContexts in core/modules/views/src/Entity/Render/TranslationLanguageRenderer.php
The cache contexts associated with this object.

File

core/modules/views/src/Entity/Render/RendererBase.php, line 72

Class

RendererBase
Defines a base class for entity renderers.

Namespace

Drupal\views\Entity\Render

Code

public function getCacheContexts() {
    return [];
}

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