You are here

public function GoogleCSEBlock::getCacheTags in Google Custom Search Engine 8.2

Same name and namespace in other branches
  1. 8.3 src/Plugin/Block/GoogleCSEBlock.php \Drupal\google_cse\Plugin\Block\GoogleCSEBlock::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/GoogleCSEBlock.php, line 115

Class

GoogleCSEBlock
Provides a 'Google CSE' block.

Namespace

Drupal\google_cse\Plugin\Block

Code

public function getCacheTags() {
  return Cache::mergeTags(parent::getCacheTags(), $this->configFactory
    ->get('search.page.google_cse_search')
    ->getCacheTags());
}