You are here

protected function ConfigProviderConfigInstaller::lazyLoadItself in Configuration Provider 8

Same name and namespace in other branches
  1. 8.2 src/ProxyClass/ConfigProviderConfigInstaller.php \Drupal\config_provider\ProxyClass\ConfigProviderConfigInstaller::lazyLoadItself()

Lazy loads the real service from the container.

Return value

object Returns the constructed real service.

File

src/ProxyClass/ConfigProviderConfigInstaller.php, line 61

Class

ConfigProviderConfigInstaller
Provides a proxy class for \Drupal\config_provider\ConfigProviderConfigInstaller.

Namespace

Drupal\config_provider\ProxyClass

Code

protected function lazyLoadItself() {
  if (!isset($this->service)) {
    $this->service = $this->container
      ->get($this->drupalProxyOriginalServiceId);
  }
  return $this->service;
}