public function SocialSharingBlock::getCacheTags in Social media share 8
The cache tags associated with this object.
When this object is modified, these cache tags will be invalidated.
Return value
string[] A set of cache tags.
Overrides ContextAwarePluginBase::getCacheTags
File
- src/
Plugin/ Block/ SocialSharingBlock.php, line 203
Class
- SocialSharingBlock
- Provides a 'SocialSharingBlock' block.
Namespace
Drupal\social_media\Plugin\BlockCode
public function getCacheTags() {
return Cache::mergeTags(parent::getCacheTags(), [
'social_media:' . $this->currentPath
->getPath(),
'config:social_media.settings',
]);
}