You are here

public function TeamContextSwitcherBlock::getCacheTags in Apigee Edge 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

modules/apigee_edge_teams/src/Plugin/Block/TeamContextSwitcherBlock.php, line 233

Class

TeamContextSwitcherBlock
Provides a block for switching team context.

Namespace

Drupal\apigee_edge_teams\Plugin\Block

Code

public function getCacheTags() {
  return Cache::mergeTags(parent::getCacheTags(), [
    'team_list',
    'user:' . $this->account
      ->id(),
  ]);
}