You are here

public function TagcloudsTermsBlock::getCacheTags in TagCloud 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/Block/TagcloudsTermsBlock.php \Drupal\tagclouds\Plugin\Block\TagcloudsTermsBlock::getCacheTags()
  2. 1.0.x src/Plugin/Block/TagcloudsTermsBlock.php \Drupal\tagclouds\Plugin\Block\TagcloudsTermsBlock::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

src/Plugin/Block/TagcloudsTermsBlock.php, line 163

Class

TagcloudsTermsBlock
Provides a template for blocks based of each vocabulary.

Namespace

Drupal\tagclouds\Plugin\Block

Code

public function getCacheTags() {
  return Cache::mergeTags(parent::getCacheTags(), [
    'node_list',
    'config:tagclouds.settings',
    'taxonomy_term_list',
  ]);
}