function Block::getCacheTagsToInvalidate
Overrides ConfigEntityBase::getCacheTagsToInvalidate
File
-
core/
modules/ block/ src/ Entity/ Block.php, line 252
Class
- Block
- Defines a Block configuration entity class.
Namespace
Drupal\block\EntityCode
public function getCacheTagsToInvalidate() {
// Only use the block_list cache tag for blocks as they are usually very
// rarely updated. Not having per-block cache tags results in a large
// reduction of unique cache tags on any page that displays blocks.
return $this->getEntityType()
->getListCacheTags();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.