You are here

public function TestHelpTopicPlugin::getCacheTags in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/help_topics/tests/modules/help_topics_test/src/Plugin/HelpTopic/TestHelpTopicPlugin.php \Drupal\help_topics_test\Plugin\HelpTopic\TestHelpTopicPlugin::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 CacheableDependencyInterface::getCacheTags

File

core/modules/help_topics/tests/modules/help_topics_test/src/Plugin/HelpTopic/TestHelpTopicPlugin.php, line 33

Class

TestHelpTopicPlugin
A fake help topic plugin for testing.

Namespace

Drupal\help_topics_test\Plugin\HelpTopic

Code

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