protected function NodeCacheTagsTest::getAdditionalCacheTagsForEntity in Drupal 10
Same name and namespace in other branches
- 8 core/modules/node/tests/src/Functional/NodeCacheTagsTest.php \Drupal\Tests\node\Functional\NodeCacheTagsTest::getAdditionalCacheTagsForEntity()
- 9 core/modules/node/tests/src/Functional/NodeCacheTagsTest.php \Drupal\Tests\node\Functional\NodeCacheTagsTest::getAdditionalCacheTagsForEntity()
Each node must have an author.
File
- core/
modules/ node/ tests/ src/ Functional/ NodeCacheTagsTest.php, line 58
Class
- NodeCacheTagsTest
- Tests the Node entity's cache tags.
Namespace
Drupal\Tests\node\FunctionalCode
protected function getAdditionalCacheTagsForEntity(EntityInterface $node) {
return [
'user:' . $node
->getOwnerId(),
'user_view',
];
}