function State::resetCache
Resets the static cache.
This is mainly used in testing environments.
Overrides StateInterface::resetCache
File
-
core/
lib/ Drupal/ Core/ State/ State.php, line 117
Class
- State
- Provides the state system using a key value store.
Namespace
Drupal\Core\StateCode
public function resetCache() {
$this->cache = [];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.