You are here

public function ShariffBlock::getCacheTags in Shariff Social Media Buttons 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/ShariffBlock.php, line 417

Class

ShariffBlock
Provides a 'shariff' block.

Namespace

Drupal\shariff\Plugin\Block

Code

public function getCacheTags() {

  // The block output is dependent on the shariff settings form.
  return Cache::mergeTags(parent::getCacheTags(), [
    'config:shariff.settings',
  ]);
}