public function GroupAddBlock::getCacheTags in Open Social 10.3.x
Same name and namespace in other branches
- 8.9 modules/social_features/social_group/src/Plugin/Block/GroupAddBlock.php \Drupal\social_group\Plugin\Block\GroupAddBlock::getCacheTags()
- 8.8 modules/social_features/social_group/src/Plugin/Block/GroupAddBlock.php \Drupal\social_group\Plugin\Block\GroupAddBlock::getCacheTags()
- 10.0.x modules/social_features/social_group/src/Plugin/Block/GroupAddBlock.php \Drupal\social_group\Plugin\Block\GroupAddBlock::getCacheTags()
- 10.1.x modules/social_features/social_group/src/Plugin/Block/GroupAddBlock.php \Drupal\social_group\Plugin\Block\GroupAddBlock::getCacheTags()
- 10.2.x modules/social_features/social_group/src/Plugin/Block/GroupAddBlock.php \Drupal\social_group\Plugin\Block\GroupAddBlock::getCacheTags()
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 ContextAwarePluginTrait::getCacheTags
File
- modules/
social_features/ social_group/ src/ Plugin/ Block/ GroupAddBlock.php, line 160
Class
- GroupAddBlock
- Provides a 'GroupAddBlock' block.
Namespace
Drupal\social_group\Plugin\BlockCode
public function getCacheTags() {
return Cache::mergeTags(parent::getCacheTags(), [
'social_group_add_block:uid:' . $this->currentUser
->id(),
]);
}