function BlockContentCacheTagsTest::getAccessCacheContextsForEntity

Same name and namespace in other branches
  1. 9 core/modules/block_content/tests/src/Functional/BlockContentCacheTagsTest.php \Drupal\Tests\block_content\Functional\BlockContentCacheTagsTest::getAccessCacheContextsForEntity()
  2. 8.9.x core/modules/block_content/tests/src/Functional/BlockContentCacheTagsTest.php \Drupal\Tests\block_content\Functional\BlockContentCacheTagsTest::getAccessCacheContextsForEntity()
  3. 10 core/modules/block_content/tests/src/Functional/BlockContentCacheTagsTest.php \Drupal\Tests\block_content\Functional\BlockContentCacheTagsTest::getAccessCacheContextsForEntity()

Overrides EntityCacheTagsTestBase::getAccessCacheContextsForEntity

See also

\Drupal\block_content\BlockContentAccessControlHandler::checkAccess()

File

core/modules/block_content/tests/src/Functional/BlockContentCacheTagsTest.php, line 62

Class

BlockContentCacheTagsTest
Tests the Content Block entity's cache tags.

Namespace

Drupal\Tests\block_content\Functional

Code

protected function getAccessCacheContextsForEntity(EntityInterface $entity) {
    return [];
}

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