public function ViewsData::clear

Clears the class storage and cache.

File

drupal/core/modules/views/lib/Drupal/views/ViewsData.php, line 268
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->fullyLoaded = FALSE;
  $this->cacheBackend
    ->deleteAll();
}