2 // @codingStandardsIgnoreFile
5 * This file was generated via php core/scripts/generate-proxy-class.php 'Drupal\forum\ForumUninstallValidator' "core/modules/forum/src".
8 namespace Drupal\forum\ProxyClass {
11 * Provides a proxy class for \Drupal\forum\ForumUninstallValidator.
13 * @see \Drupal\Component\ProxyBuilder
15 class ForumUninstallValidator implements \Drupal\Core\Extension\ModuleUninstallValidatorInterface
18 use \Drupal\Core\DependencyInjection\DependencySerializationTrait;
21 * The id of the original proxied service.
25 protected $drupalProxyOriginalServiceId;
28 * The real proxied service, after it was lazy loaded.
30 * @var \Drupal\forum\ForumUninstallValidator
35 * The service container.
37 * @var \Symfony\Component\DependencyInjection\ContainerInterface
42 * Constructs a ProxyClass Drupal proxy object.
44 * @param \Symfony\Component\DependencyInjection\ContainerInterface $container
46 * @param string $drupal_proxy_original_service_id
47 * The service ID of the original service.
49 public function __construct(\Symfony\Component\DependencyInjection\ContainerInterface $container, $drupal_proxy_original_service_id)
51 $this->container = $container;
52 $this->drupalProxyOriginalServiceId = $drupal_proxy_original_service_id;
56 * Lazy loads the real service from the container.
59 * Returns the constructed real service.
61 protected function lazyLoadItself()
63 if (!isset($this->service)) {
64 $this->service = $this->container->get($this->drupalProxyOriginalServiceId);
67 return $this->service;
73 public function validate($module)
75 return $this->lazyLoadItself()->validate($module);
81 public function setStringTranslation(\Drupal\Core\StringTranslation\TranslationInterface $translation)
83 return $this->lazyLoadItself()->setStringTranslation($translation);