Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ViewsData.php

function ViewsData::clear

Clears the class storage and cache.

File

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

Class

ViewsData
Class to manage and lazy load cached views data.

Namespace

Drupal\views

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal