ViewRevisionsConverter.php in Config Entity Revisions 8.2
File
modules/view_revisions/src/ProxyClass/ParamConverter/ViewRevisionsConverter.php
View source
<?php
namespace Drupal\view_revisions\ProxyClass\ParamConverter;
class ViewRevisionsConverter implements \Drupal\Core\ParamConverter\ParamConverterInterface {
use \Drupal\Core\DependencyInjection\DependencySerializationTrait;
protected $drupalProxyOriginalServiceId;
protected $service;
protected $container;
public function __construct(\Symfony\Component\DependencyInjection\ContainerInterface $container, $drupal_proxy_original_service_id) {
$this->container = $container;
$this->drupalProxyOriginalServiceId = $drupal_proxy_original_service_id;
}
protected function lazyLoadItself() {
if (!isset($this->service)) {
$this->service = $this->container
->get($this->drupalProxyOriginalServiceId);
}
return $this->service;
}
public function convert($value, $definition, $name, array $defaults) {
return $this
->lazyLoadItself()
->convert($value, $definition, $name, $defaults);
}
public function applies($definition, $name, \Symfony\Component\Routing\Route $route) {
return $this
->lazyLoadItself()
->applies($definition, $name, $route);
}
public function moduleName() {
return $this
->lazyLoadItself()
->moduleName();
}
public function configEntityName() {
return $this
->lazyLoadItself()
->configEntityName();
}
public function revisionsEntityName() {
return $this
->lazyLoadItself()
->revisionsEntityName();
}
public function settingName() {
return $this
->lazyLoadItself()
->settingName();
}
public function title() {
return $this
->lazyLoadItself()
->title();
}
public function hasOwnContent() {
return $this
->lazyLoadItself()
->hasOwnContent();
}
public function contentEntityType() {
return $this
->lazyLoadItself()
->contentEntityType();
}
public function contentParameterName() {
return $this
->lazyLoadItself()
->contentParameterName();
}
public function contentParentReferenceField() {
return $this
->lazyLoadItself()
->contentParentReferenceField();
}
public function adminPermission() {
return $this
->lazyLoadItself()
->adminPermission();
}
public function hasCanonicalUrl() {
return $this
->lazyLoadItself()
->hasCanonicalUrl();
}
}