You are here

protected function SearchApiConverter::lazyLoadItself in Search API 8

Lazy loads the real service from the container.

Return value

\Drupal\search_api\ParamConverter\SearchApiConverter Returns the constructed real service.

File

src/ProxyClass/ParamConverter/SearchApiConverter.php, line 64

Class

SearchApiConverter
Provides a proxy class for \Drupal\search_api\ParamConverter\SearchApiConverter.

Namespace

Drupal\search_api\ProxyClass\ParamConverter

Code

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