public function BlazyManagerBase::configLoad in Blazy 8
Same name and namespace in other branches
- 8.2 src/BlazyManagerBase.php \Drupal\blazy\BlazyManagerBase::configLoad()
Returns any config, or keyed by the $setting_name.
2 calls to BlazyManagerBase::configLoad()
- BlazyManagerBase::getCacheMetadata in src/
BlazyManagerBase.php - Return the cache metadata common for all blazy-related modules.
- BlazyManagerBase::getCommonSettings in src/
BlazyManagerBase.php - Returns the common settings inherited down to each item.
File
- src/
BlazyManagerBase.php, line 116
Class
- BlazyManagerBase
- Implements BlazyManagerInterface.
Namespace
Drupal\blazyCode
public function configLoad($setting_name = '', $settings = 'blazy.settings') {
$config = $this->configFactory
->get($settings);
$configs = $config
->get();
unset($configs['_core']);
return empty($setting_name) ? $configs : $config
->get($setting_name);
}