function NodePreviewConverter::lazyLoadItself
Same name in other branches
- 9 core/modules/node/src/ProxyClass/ParamConverter/NodePreviewConverter.php \Drupal\node\ProxyClass\ParamConverter\NodePreviewConverter::lazyLoadItself()
- 8.9.x core/modules/node/src/ProxyClass/ParamConverter/NodePreviewConverter.php \Drupal\node\ProxyClass\ParamConverter\NodePreviewConverter::lazyLoadItself()
- 10 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 66
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.