You are here

protected function NodeCacheTagsTest::getAdditionalCacheTagsForEntity in Zircon Profile 8

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

Each node must have an author.

Overrides EntityCacheTagsTestBase::getAdditionalCacheTagsForEntity

File

core/modules/node/src/Tests/NodeCacheTagsTest.php, line 56
Contains \Drupal\node\Tests\NodeCacheTagsTest.

Class

NodeCacheTagsTest
Tests the Node entity's cache tags.

Namespace

Drupal\node\Tests

Code

protected function getAdditionalCacheTagsForEntity(EntityInterface $node) {
  return array(
    'user:' . $node
      ->getOwnerId(),
    'user_view',
  );
}