public function TextProcessed::getCacheMaxAge in Drupal 10
Same name and namespace in other branches
- 8 core/modules/text/src/TextProcessed.php \Drupal\text\TextProcessed::getCacheMaxAge()
- 9 core/modules/text/src/TextProcessed.php \Drupal\text\TextProcessed::getCacheMaxAge()
The maximum age for which this object may be cached.
Return value
int The maximum time in seconds that this object may be cached.
Overrides CacheableDependencyInterface::getCacheMaxAge
File
- core/
modules/ text/ src/ TextProcessed.php, line 98
Class
- TextProcessed
- A computed property for processing text with a format.
Namespace
Drupal\textCode
public function getCacheMaxAge() {
$this
->getValue();
return $this->processed
->getCacheMaxAge();
}