You are here

protected function EntityCacheTagsTestBase::getAdditionalCacheTagsForEntity in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/Entity/EntityCacheTagsTestBase.php \Drupal\system\Tests\Entity\EntityCacheTagsTestBase::getAdditionalCacheTagsForEntity()

Returns the additional (non-standard) cache tags for the tested entity.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity to be tested, as created by createEntity().

Return value

array An array of the additional cache tags.

See also

\Drupal\system\Tests\Entity\EntityCacheTagsTestBase::createEntity()

2 calls to EntityCacheTagsTestBase::getAdditionalCacheTagsForEntity()
EntityCacheTagsTestBase::testReferencedEntity in core/modules/system/src/Tests/Entity/EntityCacheTagsTestBase.php
Tests cache tags presence and invalidation of the entity when referenced.
EntityWithUriCacheTagsTestBase::testEntityUri in core/modules/system/src/Tests/Entity/EntityWithUriCacheTagsTestBase.php
Tests cache tags presence and invalidation of the entity at its URI.
3 methods override EntityCacheTagsTestBase::getAdditionalCacheTagsForEntity()
BlockContentCacheTagsTest::getAdditionalCacheTagsForEntity in core/modules/block_content/src/Tests/BlockContentCacheTagsTest.php
Each comment must have a comment body, which always has a text format.
CommentCacheTagsTest::getAdditionalCacheTagsForEntity in core/modules/comment/src/Tests/CommentCacheTagsTest.php
Each comment must have a comment body, which always has a text format.
NodeCacheTagsTest::getAdditionalCacheTagsForEntity in core/modules/node/src/Tests/NodeCacheTagsTest.php
Each node must have an author.

File

core/modules/system/src/Tests/Entity/EntityCacheTagsTestBase.php, line 177
Contains \Drupal\system\Tests\Entity\EntityCacheTagsTestBase.

Class

EntityCacheTagsTestBase
Provides helper methods for Entity cache tags tests.

Namespace

Drupal\system\Tests\Entity

Code

protected function getAdditionalCacheTagsForEntity(EntityInterface $entity) {
  return array();
}