protected function CommentCacheTagsTest::getDefaultCacheContexts in Drupal 9
Gets the default cache contexts for rendered entities.
Return value
array The default cache contexts for rendered entities.
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',
];
}