public function SocialSimpleBlock::getCacheContexts in Social simple 2.0.x
Same name and namespace in other branches
- 8 src/Plugin/Block/SocialSimpleBlock.php \Drupal\social_simple\Plugin\Block\SocialSimpleBlock::getCacheContexts()
Overrides ContextAwarePluginTrait::getCacheContexts
File
- src/
Plugin/ Block/ SocialSimpleBlock.php, line 198
Class
- SocialSimpleBlock
- Provides a 'SocialSimpleBlock' block.
Namespace
Drupal\social_simple\Plugin\BlockCode
public function getCacheContexts() {
return Cache::mergeContexts(parent::getCacheContexts(), [
'url.path',
]);
}