protected function UserCacheTagsTest::getAdditionalCacheTagsForEntityListing in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/user/src/Tests/UserCacheTagsTest.php \Drupal\user\Tests\UserCacheTagsTest::getAdditionalCacheTagsForEntityListing()
Returns the additional cache tags for the tested entity's listing by type.
Necessary when there are unavoidable default entities of this type, e.g. the anonymous and administrator User entities always exist.
Return value
array An array of the additional cache tags.
Overrides EntityCacheTagsTestBase::getAdditionalCacheTagsForEntityListing
File
- core/
modules/ user/ src/ Tests/ UserCacheTagsTest.php, line 56 - Contains \Drupal\user\Tests\UserCacheTagsTest.
Class
- UserCacheTagsTest
- Tests the User entity's cache tags.
Namespace
Drupal\user\TestsCode
protected function getAdditionalCacheTagsForEntityListing() {
return [
'user:0',
'user:1',
];
}