public function SocialTagsBlock::getCacheContexts in Open Social 10.0.x
Same name and namespace in other branches
- 8.9 modules/social_features/social_tagging/src/Plugin/Block/SocialTagsBlock.php \Drupal\social_tagging\Plugin\Block\SocialTagsBlock::getCacheContexts()
- 8 modules/social_features/social_tagging/src/Plugin/Block/SocialTagsBlock.php \Drupal\social_tagging\Plugin\Block\SocialTagsBlock::getCacheContexts()
- 8.2 modules/social_features/social_tagging/src/Plugin/Block/SocialTagsBlock.php \Drupal\social_tagging\Plugin\Block\SocialTagsBlock::getCacheContexts()
- 8.3 modules/social_features/social_tagging/src/Plugin/Block/SocialTagsBlock.php \Drupal\social_tagging\Plugin\Block\SocialTagsBlock::getCacheContexts()
- 8.4 modules/social_features/social_tagging/src/Plugin/Block/SocialTagsBlock.php \Drupal\social_tagging\Plugin\Block\SocialTagsBlock::getCacheContexts()
- 8.5 modules/social_features/social_tagging/src/Plugin/Block/SocialTagsBlock.php \Drupal\social_tagging\Plugin\Block\SocialTagsBlock::getCacheContexts()
- 8.6 modules/social_features/social_tagging/src/Plugin/Block/SocialTagsBlock.php \Drupal\social_tagging\Plugin\Block\SocialTagsBlock::getCacheContexts()
- 8.7 modules/social_features/social_tagging/src/Plugin/Block/SocialTagsBlock.php \Drupal\social_tagging\Plugin\Block\SocialTagsBlock::getCacheContexts()
- 8.8 modules/social_features/social_tagging/src/Plugin/Block/SocialTagsBlock.php \Drupal\social_tagging\Plugin\Block\SocialTagsBlock::getCacheContexts()
- 10.3.x modules/social_features/social_tagging/src/Plugin/Block/SocialTagsBlock.php \Drupal\social_tagging\Plugin\Block\SocialTagsBlock::getCacheContexts()
- 10.1.x modules/social_features/social_tagging/src/Plugin/Block/SocialTagsBlock.php \Drupal\social_tagging\Plugin\Block\SocialTagsBlock::getCacheContexts()
- 10.2.x modules/social_features/social_tagging/src/Plugin/Block/SocialTagsBlock.php \Drupal\social_tagging\Plugin\Block\SocialTagsBlock::getCacheContexts()
Overrides ContextAwarePluginTrait::getCacheContexts
File
- modules/
social_features/ social_tagging/ src/ Plugin/ Block/ SocialTagsBlock.php, line 104
Class
- SocialTagsBlock
- Provides a 'SocialTags' block.
Namespace
Drupal\social_tagging\Plugin\BlockCode
public function getCacheContexts() {
$cache_contexts = parent::getCacheContexts();
$cache_contexts[] = 'url';
return $cache_contexts;
}