State::resetCache

public 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\State

Code

public function resetCache() {
  $this->cache = array();
}
doc_Drupal
2016-10-29 09:43:56
Comments
Leave a Comment

Please login to continue.