function TextProcessed::getCacheContexts

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

Overrides CacheableDependencyInterface::getCacheContexts

File

core/modules/text/src/TextProcessed.php, line 90

Class

TextProcessed
A computed property for processing text with a format.

Namespace

Drupal\text

Code

public function getCacheContexts() {
    $this->getValue();
    return $this->processed
        ->getCacheContexts();
}

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