You are here

public function SocialSimpleBlock::getCacheContexts in Social simple 2.0.x

Same name and namespace in other branches
  1. 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\Block

Code

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