You are here

protected function ViewUIConverter::lazyLoadItself in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views_ui/src/ProxyClass/ParamConverter/ViewUIConverter.php \Drupal\views_ui\ProxyClass\ParamConverter\ViewUIConverter::lazyLoadItself()

Lazy loads the real service from the container.

Return value

object Returns the constructed real service.

File

core/modules/views_ui/src/ProxyClass/ParamConverter/ViewUIConverter.php, line 65
Contains \Drupal\views_ui\ProxyClass\ParamConverter\ViewUIConverter.

Class

ViewUIConverter
Provides a proxy class for \Drupal\views_ui\ParamConverter\ViewUIConverter.

Namespace

Drupal\views_ui\ProxyClass\ParamConverter

Code

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