You are here

public function ViewsData::clear in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views/src/ViewsData.php \Drupal\views\ViewsData::clear()

Clears the class storage and cache.

File

core/modules/views/src/ViewsData.php, line 321
Contains \Drupal\views\ViewsData.

Class

ViewsData
Class to manage and lazy load cached views data.

Namespace

Drupal\views

Code

public function clear() {
  $this->storage = array();
  $this->allStorage = array();
  $this->fullyLoaded = FALSE;
  Cache::invalidateTags(array(
    'views_data',
  ));
}