function CacheableMetadataCalculationTest::getCacheTags

Same name in other branches
  1. 9 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()
  2. 8.9.x 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()
  3. 10 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()

Overrides CacheableDependencyInterface::getCacheTags

File

core/modules/views/tests/modules/views_test_cacheable_metadata_calculation/src/Plugin/views/access/CacheableMetadataCalculationTest.php, line 87

Class

CacheableMetadataCalculationTest
Tests plugin that reports when cacheable metadata is being calculated.

Namespace

Drupal\views_test_cacheable_metadata_calculation\Plugin\views\access

Code

public function getCacheTags() {
    $this->cacheableMetadataHasBeenAccessed();
    return [];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.