function HelpTopicTwig::getCacheMaxAge

Same name in other branches
  1. 9 core/modules/help_topics/src/HelpTopicTwig.php \Drupal\help_topics\HelpTopicTwig::getCacheMaxAge()
  2. 8.9.x core/modules/help_topics/src/HelpTopicTwig.php \Drupal\help_topics\HelpTopicTwig::getCacheMaxAge()
  3. 11.x core/modules/help/src/HelpTopicTwig.php \Drupal\help\HelpTopicTwig::getCacheMaxAge()

Overrides CacheableDependencyInterface::getCacheMaxAge

File

core/modules/help/src/HelpTopicTwig.php, line 76

Class

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

Namespace

Drupal\help

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.