function EntityViewBuilder::getCacheTags
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Entity/EntityViewBuilder.php \Drupal\Core\Entity\EntityViewBuilder::getCacheTags()
- 10 core/lib/Drupal/Core/Entity/EntityViewBuilder.php \Drupal\Core\Entity\EntityViewBuilder::getCacheTags()
- 11.x core/lib/Drupal/Core/Entity/EntityViewBuilder.php \Drupal\Core\Entity\EntityViewBuilder::getCacheTags()
Overrides EntityViewBuilderInterface::getCacheTags
3 calls to EntityViewBuilder::getCacheTags()
- BlockViewBuilder::viewMultiple in core/
modules/ block/ src/ BlockViewBuilder.php - Builds the render array for the provided entities.
- EntityViewBuilder::getBuildDefaults in core/
lib/ Drupal/ Core/ Entity/ EntityViewBuilder.php - Provides entity-specific defaults to the build process.
- EntityViewBuilder::resetCache in core/
lib/ Drupal/ Core/ Entity/ EntityViewBuilder.php - Resets the entity render cache.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityViewBuilder.php, line 395
Class
- EntityViewBuilder
- Base class for entity view builders.
Namespace
Drupal\Core\EntityCode
public function getCacheTags() {
return [
$this->entityTypeId . '_view',
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.