You are here

public function FooBlock::getCacheTags in Twig Tweak 8.2

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

tests/twig_tweak_test/src/Plugin/Block/FooBlock.php, line 47

Class

FooBlock
Provides a foo block.

Namespace

Drupal\twig_tweak_test\Plugin\Block

Code

public function getCacheTags() {
  return [
    'tag_twig_tweak_test_foo_plugin',
  ];
}