public function ViewsData::clear in Drupal 9
Same name and namespace in other branches
- 8 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
Class
- ViewsData
- Class to manage and lazy load cached views data.
Namespace
Drupal\viewsCode
public function clear() {
$this->storage = [];
$this->allStorage = [];
$this->fullyLoaded = FALSE;
Cache::invalidateTags([
'views_data',
]);
}