You are here

public function ConfigFactoryWrapper::get in Devel 8

Same name and namespace in other branches
  1. 8.3 webprofiler/src/Config/ConfigFactoryWrapper.php \Drupal\webprofiler\Config\ConfigFactoryWrapper::get()
  2. 8.2 webprofiler/src/Config/ConfigFactoryWrapper.php \Drupal\webprofiler\Config\ConfigFactoryWrapper::get()
  3. 4.x webprofiler/src/Config/ConfigFactoryWrapper.php \Drupal\webprofiler\Config\ConfigFactoryWrapper::get()

Returns an immutable configuration object for a given name.

Parameters

string $name: The name of the configuration object to construct.

Return value

\Drupal\Core\Config\ImmutableConfig A configuration object.

Overrides ConfigFactory::get

File

webprofiler/src/Config/ConfigFactoryWrapper.php, line 21

Class

ConfigFactoryWrapper
Wraps a config factory to be able to figure out all used config files.

Namespace

Drupal\webprofiler\Config

Code

public function get($name) {
  $result = parent::get($name);
  $this->dataCollector
    ->addConfigName($name);
  return $result;
}