public static function BootstrapConfigStorageFactory::get
public static BootstrapConfigStorageFactory::get($class_loader = NULL)
Returns a configuration storage implementation.
Parameters
$class_loader: The class loader. Normally Composer's ClassLoader, as included by the front controller, but may also be decorated; e.g., \Symfony\Component\ClassLoader\ApcClassLoader.
Return value
\Drupal\Core\Config\StorageInterface A configuration storage implementation.
File
- core/lib/Drupal/Core/Config/BootstrapConfigStorageFactory.php, line 24
Class
- BootstrapConfigStorageFactory
- Defines a factory for retrieving the config storage used pre-kernel.
Namespace
Drupal\Core\ConfigCode
public static function get($class_loader = NULL) { $bootstrap_config_storage = Settings::get('bootstrap_config_storage'); $storage_backend = FALSE; if (!empty($bootstrap_config_storage) && is_callable($bootstrap_config_storage)) { $storage_backend = call_user_func($bootstrap_config_storage, $class_loader); } // Fallback to the DatabaseStorage. return $storage_backend ? : self::getDatabaseStorage(); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!BootstrapConfigStorageFactory.php/function/BootstrapConfigStorageFactory::get/8.1.x