function ComponentNegotiator::clearCache
Same name in this branch
- 10 core/lib/Drupal/Core/Theme/ComponentNegotiator.php \Drupal\Core\Theme\ComponentNegotiator::clearCache()
Same name in other branches
- 11.x core/modules/sdc/src/ComponentNegotiator.php \Drupal\sdc\ComponentNegotiator::clearCache()
- 11.x core/lib/Drupal/Core/Theme/ComponentNegotiator.php \Drupal\Core\Theme\ComponentNegotiator::clearCache()
Clears the negotiation cache.
File
-
core/
modules/ sdc/ src/ ComponentNegotiator.php, line 181
Class
- ComponentNegotiator
- Determines which component should be used.
Namespace
Drupal\sdcCode
public function clearCache() : void {
$this->cache = [];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.