Resets and re-initializes configuration objects. Internal use only.
string $name: (optional) The name of the configuration object to reset. If omitted, all configuration objects are reset.
\Drupal\Core\Config\ConfigFactory The config factory object.
public function reset($name = NULL) {
if ($name) {
// Clear the cached configuration object in all contexts.
foreach ($this
->getCacheKeys($name) as $cache_key) {
unset($this->cache[$cache_key]);
}
}
else {
$this->cache = array();
}
return $this;
}