protected function NodePreviewConverter::lazyLoadItself in Drupal 8
Same name and namespace in other branches
- 9 core/modules/node/src/ProxyClass/ParamConverter/NodePreviewConverter.php \Drupal\node\ProxyClass\ParamConverter\NodePreviewConverter::lazyLoadItself()
Lazy loads the real service from the container.
Return value
object Returns the constructed real service.
File
- core/
modules/ node/ src/ ProxyClass/ ParamConverter/ NodePreviewConverter.php, line 61
Class
- NodePreviewConverter
- Provides a proxy class for \Drupal\node\ParamConverter\NodePreviewConverter.
Namespace
Drupal\node\ProxyClass\ParamConverterCode
protected function lazyLoadItself() {
if (!isset($this->service)) {
$this->service = $this->container
->get($this->drupalProxyOriginalServiceId);
}
return $this->service;
}