ViewsData::clear

public ViewsData::clear()

Clears the class storage and cache.

File

core/modules/views/src/ViewsData.php, line 329

Class

ViewsData
Class to manage and lazy load cached views data.

Namespace

Drupal\views

Code

1
2
3
4
5
6
public function clear() {
  $this->storage = array();
  $this->allStorage = array();
  $this->fullyLoaded = FALSE;
  Cache::invalidateTags(array('views_data'));
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.