You are here

protected function UserCacheTagsTest::getAdditionalCacheTagsForEntityListing in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/user/tests/src/Functional/UserCacheTagsTest.php \Drupal\Tests\user\Functional\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/tests/src/Functional/UserCacheTagsTest.php, line 57

Class

UserCacheTagsTest
Tests the User entity's cache tags.

Namespace

Drupal\Tests\user\Functional

Code

protected function getAdditionalCacheTagsForEntityListing() {
  return [
    'user:0',
    'user:1',
  ];
}