You are here

public function BlazyManagerBase::configLoad in Blazy 8

Same name and namespace in other branches
  1. 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\blazy

Code

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);
}