You are here

public function GroupStatisticBlock::getCacheMaxAge in Open Social 8.8

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_group/src/Plugin/Block/GroupStatisticBlock.php \Drupal\social_group\Plugin\Block\GroupStatisticBlock::getCacheMaxAge()
  2. 10.3.x modules/social_features/social_group/src/Plugin/Block/GroupStatisticBlock.php \Drupal\social_group\Plugin\Block\GroupStatisticBlock::getCacheMaxAge()
  3. 10.0.x modules/social_features/social_group/src/Plugin/Block/GroupStatisticBlock.php \Drupal\social_group\Plugin\Block\GroupStatisticBlock::getCacheMaxAge()
  4. 10.1.x modules/social_features/social_group/src/Plugin/Block/GroupStatisticBlock.php \Drupal\social_group\Plugin\Block\GroupStatisticBlock::getCacheMaxAge()
  5. 10.2.x modules/social_features/social_group/src/Plugin/Block/GroupStatisticBlock.php \Drupal\social_group\Plugin\Block\GroupStatisticBlock::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 ContextAwarePluginBase::getCacheMaxAge

File

modules/social_features/social_group/src/Plugin/Block/GroupStatisticBlock.php, line 141

Class

GroupStatisticBlock
Provides a 'GroupStatisticBlock' block.

Namespace

Drupal\social_group\Plugin\Block

Code

public function getCacheMaxAge() {
  return 0;
}