function ExposedFormCache::reset

Same name in other branches
  1. 8.9.x core/modules/views/src/ExposedFormCache.php \Drupal\views\ExposedFormCache::reset()
  2. 10 core/modules/views/src/ExposedFormCache.php \Drupal\views\ExposedFormCache::reset()
  3. 11.x core/modules/views/src/ExposedFormCache.php \Drupal\views\ExposedFormCache::reset()

Rests the form cache.

File

core/modules/views/src/ExposedFormCache.php, line 58

Class

ExposedFormCache
Caches exposed forms, as they are heavy to generate.

Namespace

Drupal\views

Code

public function reset() {
    $this->cache = [];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.