function LanguageBlock::getCacheMaxAge
Same name in other branches
- 9 core/modules/language/src/Plugin/Block/LanguageBlock.php \Drupal\language\Plugin\Block\LanguageBlock::getCacheMaxAge()
- 8.9.x core/modules/language/src/Plugin/Block/LanguageBlock.php \Drupal\language\Plugin\Block\LanguageBlock::getCacheMaxAge()
- 11.x core/modules/language/src/Plugin/Block/LanguageBlock.php \Drupal\language\Plugin\Block\LanguageBlock::getCacheMaxAge()
@todo Make cacheable in https://www.drupal.org/node/2232375.
Overrides ContextAwarePluginTrait::getCacheMaxAge
File
-
core/
modules/ language/ src/ Plugin/ Block/ LanguageBlock.php, line 124
Class
- LanguageBlock
- Provides a 'Language switcher' block.
Namespace
Drupal\language\Plugin\BlockCode
public function getCacheMaxAge() {
return 0;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.