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

1
2
3
public function resetCache() {
  $this->cache = array();
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.