function NodePreviewConverter::lazyLoadItself
Same name and namespace in other branches
- 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()
- 11.x 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 <a href="/api/drupal/core%21modules%21node%21src%21ParamConverter%21NodePreviewConverter.php/class/NodePreviewConverter/9" title="Provides upcasting for a node entity in preview." class="local">\Drupal\node\ParamConverter\NodePreviewConverter</a>.
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.