public function EntityViewBuilder::getCacheTags in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/EntityViewBuilder.php \Drupal\Core\Entity\EntityViewBuilder::getCacheTags()
The cache tag associated with this entity view builder.
An entity view builder is instantiated on a per-entity type basis, so the cache tags are also per-entity type.
Return value
array An array of cache tags.
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 333 - Contains \Drupal\Core\Entity\EntityViewBuilder.
Class
- EntityViewBuilder
- Base class for entity view builders.
Namespace
Drupal\Core\EntityCode
public function getCacheTags() {
return array(
$this->entityTypeId . '_view',
);
}