public function SocialInviteLocalActionsBlock::getCacheContexts in Open Social 10.2.x
Same name and namespace in other branches
- 8.9 modules/social_features/social_group/modules/social_group_invite/src/Plugin/Block/SocialInviteLocalActionsBlock.php \Drupal\social_group_invite\Plugin\Block\SocialInviteLocalActionsBlock::getCacheContexts()
- 10.3.x modules/social_features/social_group/modules/social_group_invite/src/Plugin/Block/SocialInviteLocalActionsBlock.php \Drupal\social_group_invite\Plugin\Block\SocialInviteLocalActionsBlock::getCacheContexts()
- 10.0.x modules/social_features/social_group/modules/social_group_invite/src/Plugin/Block/SocialInviteLocalActionsBlock.php \Drupal\social_group_invite\Plugin\Block\SocialInviteLocalActionsBlock::getCacheContexts()
- 10.1.x modules/social_features/social_group/modules/social_group_invite/src/Plugin/Block/SocialInviteLocalActionsBlock.php \Drupal\social_group_invite\Plugin\Block\SocialInviteLocalActionsBlock::getCacheContexts()
Overrides ContextAwarePluginTrait::getCacheContexts
File
- modules/
social_features/ social_group/ modules/ social_group_invite/ src/ Plugin/ Block/ SocialInviteLocalActionsBlock.php, line 93
Class
- SocialInviteLocalActionsBlock
- Provides a 'SocialInviteLocalActionsBlock' block.
Namespace
Drupal\social_group_invite\Plugin\BlockCode
public function getCacheContexts() {
$cache_contexts = parent::getCacheContexts();
$cache_contexts[] = 'user.group_permissions';
$cache_contexts[] = 'group';
$cache_contexts[] = 'route.group';
return $cache_contexts;
}