protected function DrupalKernel::getConfigStorage in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/DrupalKernel.php \Drupal\Core\DrupalKernel::getConfigStorage()
- 9 core/lib/Drupal/Core/DrupalKernel.php \Drupal\Core\DrupalKernel::getConfigStorage()
Returns the active configuration storage to use during building the container.
Return value
\Drupal\Core\Config\StorageInterface
3 calls to DrupalKernel::getConfigStorage()
- DrupalKernel::compileContainer in core/
lib/ Drupal/ Core/ DrupalKernel.php - Compiles a new service container.
- DrupalKernel::discoverServiceProviders in core/
lib/ Drupal/ Core/ DrupalKernel.php - Discovers available serviceProviders.
- DrupalKernel::getInstallProfile in core/
lib/ Drupal/ Core/ DrupalKernel.php - Gets the active install profile.
File
- core/
lib/ Drupal/ Core/ DrupalKernel.php, line 1331
Class
- DrupalKernel
- The DrupalKernel class is the core of Drupal itself.
Namespace
Drupal\CoreCode
protected function getConfigStorage() {
if (!isset($this->configStorage)) {
// The active configuration storage may not exist yet; e.g., in the early
// installer so if an exception is thrown use a NullStorage.
try {
$this->configStorage = BootstrapConfigStorageFactory::get($this->classLoader);
} catch (\Exception $e) {
$this->configStorage = new NullStorage();
}
}
return $this->configStorage;
}