public function SocialTagsBlock::getCacheTags in Open Social 10.2.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::getCacheTags()
- 8 modules/social_features/social_tagging/src/Plugin/Block/SocialTagsBlock.php \Drupal\social_tagging\Plugin\Block\SocialTagsBlock::getCacheTags()
- 8.2 modules/social_features/social_tagging/src/Plugin/Block/SocialTagsBlock.php \Drupal\social_tagging\Plugin\Block\SocialTagsBlock::getCacheTags()
- 8.3 modules/social_features/social_tagging/src/Plugin/Block/SocialTagsBlock.php \Drupal\social_tagging\Plugin\Block\SocialTagsBlock::getCacheTags()
- 8.4 modules/social_features/social_tagging/src/Plugin/Block/SocialTagsBlock.php \Drupal\social_tagging\Plugin\Block\SocialTagsBlock::getCacheTags()
- 8.5 modules/social_features/social_tagging/src/Plugin/Block/SocialTagsBlock.php \Drupal\social_tagging\Plugin\Block\SocialTagsBlock::getCacheTags()
- 8.6 modules/social_features/social_tagging/src/Plugin/Block/SocialTagsBlock.php \Drupal\social_tagging\Plugin\Block\SocialTagsBlock::getCacheTags()
- 8.7 modules/social_features/social_tagging/src/Plugin/Block/SocialTagsBlock.php \Drupal\social_tagging\Plugin\Block\SocialTagsBlock::getCacheTags()
- 8.8 modules/social_features/social_tagging/src/Plugin/Block/SocialTagsBlock.php \Drupal\social_tagging\Plugin\Block\SocialTagsBlock::getCacheTags()
- 10.3.x modules/social_features/social_tagging/src/Plugin/Block/SocialTagsBlock.php \Drupal\social_tagging\Plugin\Block\SocialTagsBlock::getCacheTags()
- 10.0.x modules/social_features/social_tagging/src/Plugin/Block/SocialTagsBlock.php \Drupal\social_tagging\Plugin\Block\SocialTagsBlock::getCacheTags()
- 10.1.x modules/social_features/social_tagging/src/Plugin/Block/SocialTagsBlock.php \Drupal\social_tagging\Plugin\Block\SocialTagsBlock::getCacheTags()
Overrides ContextAwarePluginTrait::getCacheTags
File
- modules/
social_features/ social_tagging/ src/ Plugin/ Block/ SocialTagsBlock.php, line 113
Class
- SocialTagsBlock
- Provides a 'SocialTags' block.
Namespace
Drupal\social_tagging\Plugin\BlockCode
public function getCacheTags() {
$cache_tags = parent::getCacheTags();
$node = $this->routeMatch
->getParameter('node');
if ($node instanceof Node) {
$cache_tags[] = 'node:' . $node
->id();
}
return $cache_tags;
}