You are here

public function CookieDeclarationBlock::getCacheTags in Cookiebot - Cookie consent, Cookie monitoring and Cookie control 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

src/Plugin/Block/CookieDeclarationBlock.php, line 80

Class

CookieDeclarationBlock
Provides a 'CookieDeclarationBlock' block.

Namespace

Drupal\cookiebot\Plugin\Block

Code

public function getCacheTags() {
  return Cache::mergeTags(parent::getCacheTags(), [
    'cookiebot:cbid',
  ]);
}