public function CacheableMetadataCalculationTest::getCacheTags in Drupal 9
Same name and namespace in other branches
- 8 core/modules/views/tests/modules/views_test_cacheable_metadata_calculation/src/Plugin/views/access/CacheableMetadataCalculationTest.php \Drupal\views_test_cacheable_metadata_calculation\Plugin\views\access\CacheableMetadataCalculationTest::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/ views/ tests/ modules/ views_test_cacheable_metadata_calculation/ src/ Plugin/ views/ access/ CacheableMetadataCalculationTest.php, line 84
Class
- CacheableMetadataCalculationTest
- Tests plugin that reports when cacheable metadata is being calculated.
Namespace
Drupal\views_test_cacheable_metadata_calculation\Plugin\views\accessCode
public function getCacheTags() {
$this
->cacheableMetadataHasBeenAccessed();
return [];
}