function BlockViewBuilder::getCacheTags
Same name and namespace in other branches
- main core/modules/block/src/BlockViewBuilder.php \Drupal\block\BlockViewBuilder::getCacheTags()
Overrides EntityViewBuilder::getCacheTags
1 call to BlockViewBuilder::getCacheTags()
- BlockViewBuilder::viewMultiple in core/
modules/ block/ src/ BlockViewBuilder.php - Builds the render array for the provided entities.
File
-
core/
modules/ block/ src/ BlockViewBuilder.php, line 179
Class
- BlockViewBuilder
- Provides a Block view builder.
Namespace
Drupal\blockCode
public function getCacheTags() {
// Blocks do not use a view cache tag, they have no mechanisms that would
// require an invalidation of view related caches.
return [];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.