function View::invalidateCaches
Same name in other branches
- 9 core/modules/views/src/Entity/View.php \Drupal\views\Entity\View::invalidateCaches()
- 10 core/modules/views/src/Entity/View.php \Drupal\views\Entity\View::invalidateCaches()
- 11.x core/modules/views/src/Entity/View.php \Drupal\views\Entity\View::invalidateCaches()
Invalidates cache tags.
1 call to View::invalidateCaches()
- View::postSave in core/
modules/ views/ src/ Entity/ View.php - Acts on a saved entity before the insert or update hook is invoked.
File
-
core/
modules/ views/ src/ Entity/ View.php, line 517
Class
- View
- Defines a View configuration entity class.
Namespace
Drupal\views\EntityCode
public function invalidateCaches() {
// Invalidate cache tags for cached rows.
$tags = $this->getCacheTags();
\Drupal::service('cache_tags.invalidator')->invalidateTags($tags);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.