function CommentCacheTagsTest::getDefaultCacheContexts
Same name in other branches
- 10 core/modules/comment/tests/src/Functional/CommentCacheTagsTest.php \Drupal\Tests\comment\Functional\CommentCacheTagsTest::getDefaultCacheContexts()
- 11.x core/modules/comment/tests/src/Functional/CommentCacheTagsTest.php \Drupal\Tests\comment\Functional\CommentCacheTagsTest::getDefaultCacheContexts()
Overrides EntityWithUriCacheTagsTestBase::getDefaultCacheContexts
File
-
core/
modules/ comment/ tests/ src/ Functional/ CommentCacheTagsTest.php, line 165
Class
- CommentCacheTagsTest
- Tests the Comment entity's cache tags.
Namespace
Drupal\Tests\comment\FunctionalCode
protected function getDefaultCacheContexts() {
return [
'languages:' . LanguageInterface::TYPE_INTERFACE,
'theme',
'user.permissions',
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.