You are here

public function GroupAddBlock::getCacheTags in Open Social 8.9

Same name and namespace in other branches
  1. 8.8 modules/social_features/social_group/src/Plugin/Block/GroupAddBlock.php \Drupal\social_group\Plugin\Block\GroupAddBlock::getCacheTags()
  2. 10.3.x modules/social_features/social_group/src/Plugin/Block/GroupAddBlock.php \Drupal\social_group\Plugin\Block\GroupAddBlock::getCacheTags()
  3. 10.0.x modules/social_features/social_group/src/Plugin/Block/GroupAddBlock.php \Drupal\social_group\Plugin\Block\GroupAddBlock::getCacheTags()
  4. 10.1.x modules/social_features/social_group/src/Plugin/Block/GroupAddBlock.php \Drupal\social_group\Plugin\Block\GroupAddBlock::getCacheTags()
  5. 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 ContextAwarePluginBase::getCacheTags

File

modules/social_features/social_group/src/Plugin/Block/GroupAddBlock.php, line 156

Class

GroupAddBlock
Provides a 'GroupAddBlock' block.

Namespace

Drupal\social_group\Plugin\Block

Code

public function getCacheTags() {
  return Cache::mergeTags(parent::getCacheTags(), [
    'social_group_add_block:uid:' . $this->currentUser
      ->id(),
  ]);
}