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

public function invalidateCaches() {
  // Invalidate cache tags for cached rows.
  $tags = $this->getCacheTags();
  \Drupal::service('cache_tags.invalidator')->invalidateTags($tags);
}
doc_Drupal
2016-10-29 09:53:40
Comments
Leave a Comment

Please login to continue.