You are here

public function BlazyManagerBase::configLoad in Blazy 8.2

Same name and namespace in other branches
  1. 8 src/BlazyManagerBase.php \Drupal\blazy\BlazyManagerBase::configLoad()

Returns any config, or keyed by the $setting_name.

4 calls to BlazyManagerBase::configLoad()
BlazyManagerBase::attach in src/BlazyManagerBase.php
Returns array of needed assets suitable for #attached property.
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 UI settings inherited down to each item.
BlazyManagerBase::getIoSettings in src/BlazyManagerBase.php
Returns drupalSettings for IO.

File

src/BlazyManagerBase.php, line 192

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