function HelpTopicTwig::getCacheMaxAge

Same name and namespace in other branches
  1. 11.x core/modules/help/src/HelpTopicTwig.php \Drupal\help\HelpTopicTwig::getCacheMaxAge()
  2. 10 core/modules/help/src/HelpTopicTwig.php \Drupal\help\HelpTopicTwig::getCacheMaxAge()
  3. 9 core/modules/help_topics/src/HelpTopicTwig.php \Drupal\help_topics\HelpTopicTwig::getCacheMaxAge()
  4. main core/modules/help/src/HelpTopicTwig.php \Drupal\help\HelpTopicTwig::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/help_topics/src/HelpTopicTwig.php, line 86

Class

HelpTopicTwig
Represents a help topic plugin whose definition comes from a Twig file.

Namespace

Drupal\help_topics

Code

public function getCacheMaxAge() {
  return Cache::PERMANENT;
}

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