You are here

public function StateWrapper::resetCache in Devel 8

Same name and namespace in other branches
  1. 8.3 webprofiler/src/State/StateWrapper.php \Drupal\webprofiler\State\StateWrapper::resetCache()
  2. 8.2 webprofiler/src/State/StateWrapper.php \Drupal\webprofiler\State\StateWrapper::resetCache()
  3. 4.x webprofiler/src/State/StateWrapper.php \Drupal\webprofiler\State\StateWrapper::resetCache()

Resets the static cache.

This is mainly used in testing environments.

Overrides StateInterface::resetCache

File

webprofiler/src/State/StateWrapper.php, line 92

Class

StateWrapper
Class StateWrapper.

Namespace

Drupal\webprofiler\State

Code

public function resetCache() {
  $this->state
    ->resetCache();
}