public function ProfileStatisticBlock::getCacheContexts in Open Social 10.2.x
Same name and namespace in other branches
- 8.9 modules/social_features/social_profile/src/Plugin/Block/ProfileStatisticBlock.php \Drupal\social_profile\Plugin\Block\ProfileStatisticBlock::getCacheContexts()
- 8.8 modules/social_features/social_profile/src/Plugin/Block/ProfileStatisticBlock.php \Drupal\social_profile\Plugin\Block\ProfileStatisticBlock::getCacheContexts()
- 10.3.x modules/social_features/social_profile/src/Plugin/Block/ProfileStatisticBlock.php \Drupal\social_profile\Plugin\Block\ProfileStatisticBlock::getCacheContexts()
- 10.0.x modules/social_features/social_profile/src/Plugin/Block/ProfileStatisticBlock.php \Drupal\social_profile\Plugin\Block\ProfileStatisticBlock::getCacheContexts()
- 10.1.x modules/social_features/social_profile/src/Plugin/Block/ProfileStatisticBlock.php \Drupal\social_profile\Plugin\Block\ProfileStatisticBlock::getCacheContexts()
Overrides ContextAwarePluginTrait::getCacheContexts
File
- modules/
social_features/ social_profile/ src/ Plugin/ Block/ ProfileStatisticBlock.php, line 102
Class
- ProfileStatisticBlock
- Provides a 'ProfileStatisticBlock' block.
Namespace
Drupal\social_profile\Plugin\BlockCode
public function getCacheContexts() {
return Cache::mergeContexts(parent::getCacheContexts(), [
'user.permissions',
]);
}