You are here

public function ProfileStatisticBlock::getCacheContexts in Open Social 10.1.x

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

Code

public function getCacheContexts() {
  return Cache::mergeContexts(parent::getCacheContexts(), [
    'user.permissions',
  ]);
}