View::invalidateCaches

public View::invalidateCaches()

Invalidates cache tags.

File

core/modules/views/src/Entity/View.php, line 465

Class

View
Defines a View configuration entity class.

Namespace

Drupal\views\Entity

Code

1
2
3
4
5
public function invalidateCaches() {
  // Invalidate cache tags for cached rows.
  $tags = $this->getCacheTags();
  \Drupal::service('cache_tags.invalidator')->invalidateTags($tags);
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.