ProxyBuilder::buildUseStatements

protected ProxyBuilder::buildUseStatements() {@inheritdoc{ Overrides ProxyBuilder::buildUseStatements File core/lib/Drupal/Core/ProxyBuilder/ProxyBuilder.php, line 15 Class ProxyBuilder Extend the component proxy builder by using the DependencySerialziationTrait. Namespace Drupal\Core\ProxyBuilder Code protected function buildUseStatements() { $output = parent::buildUseStatements(); $output .= 'use \Drupal\Core\DependencyInjection\DependencySerializationTrait;' . "\n\n"; return

ProxyBuilder::buildUseStatements

protected ProxyBuilder::buildUseStatements() Build the required use statements of the proxy class. Return value string File core/lib/Drupal/Component/ProxyBuilder/ProxyBuilder.php, line 346 Class ProxyBuilder Generates the string representation of the proxy service. Namespace Drupal\Component\ProxyBuilder Code protected function buildUseStatements() { $output = ''; return $output; }

ProxyBuilder::buildProxyClassName

public static ProxyBuilder::buildProxyClassName($class_name) Generates the used proxy class name from a given class name. Parameters string $class_name: The class name of the actual service. Return value string The class name of the proxy. File core/lib/Drupal/Component/ProxyBuilder/ProxyBuilder.php, line 19 Class ProxyBuilder Generates the string representation of the proxy service. Namespace Drupal\Component\ProxyBuilder Code public static function buildProxyClassName($class_name)

ProxyBuilder::buildParameter

protected ProxyBuilder::buildParameter(\ReflectionParameter $parameter) Builds a string for a single parameter of a method. Parameters \ReflectionParameter $parameter: A reflection object of the parameter. Return value string File core/lib/Drupal/Component/ProxyBuilder/ProxyBuilder.php, line 256 Class ProxyBuilder Generates the string representation of the proxy service. Namespace Drupal\Component\ProxyBuilder Code protected function buildParameter(\ReflectionParameter $parameter) {

ProxyBuilder::buildMethodBody

protected ProxyBuilder::buildMethodBody(\ReflectionMethod $reflection_method) Builds the body of a wrapped method. Parameters \ReflectionMethod $reflection_method: A reflection method for the method. Return value string File core/lib/Drupal/Component/ProxyBuilder/ProxyBuilder.php, line 291 Class ProxyBuilder Generates the string representation of the proxy service. Namespace Drupal\Component\ProxyBuilder Code protected function buildMethodBody(\ReflectionMethod $reflection_method) {

ProxyBuilder::buildMethod

protected ProxyBuilder::buildMethod(\ReflectionMethod $reflection_method) Generates the string representation of a single method: signature, body. Parameters \ReflectionMethod $reflection_method: A reflection method for the method. Return value string File core/lib/Drupal/Component/ProxyBuilder/ProxyBuilder.php, line 209 Class ProxyBuilder Generates the string representation of the proxy service. Namespace Drupal\Component\ProxyBuilder Code protected function buildMethod(\ReflectionM

ProxyBuilder::buildLazyLoadItselfMethod

protected ProxyBuilder::buildLazyLoadItselfMethod() Generates the string for the method which loads the actual service. Return value string File core/lib/Drupal/Component/ProxyBuilder/ProxyBuilder.php, line 179 Class ProxyBuilder Generates the string representation of the proxy service. Namespace Drupal\Component\ProxyBuilder Code protected function buildLazyLoadItselfMethod() { $output = <<<'EOS' /** * Lazy loads the real service from the container. * * @return object

ProxyBuilder::buildConstructorMethod

protected ProxyBuilder::buildConstructorMethod() Builds the constructor used to inject the actual service ID. Return value string File core/lib/Drupal/Component/ProxyBuilder/ProxyBuilder.php, line 320 Class ProxyBuilder Generates the string representation of the proxy service. Namespace Drupal\Component\ProxyBuilder Code protected function buildConstructorMethod() { $output = <<<'EOS' /** * Constructs a ProxyClass Drupal proxy object. * * @param \Symfony\Component\Depend

ProxyBuilder::build

public ProxyBuilder::build($class_name, $proxy_class_name = '') Builds a proxy class string. Parameters string $class_name: The class name of the actual service. string $proxy_class_name: (optional) The class name of the proxy service. Return value string The full string with namespace class and methods. File core/lib/Drupal/Component/ProxyBuilder/ProxyBuilder.php, line 57 Class ProxyBuilder Generates the string representation of the proxy service. Namespace Drupal\Component\ProxyBuil

ProxyBuilder

Extend the component proxy builder by using the DependencySerialziationTrait. Hierarchy class \Drupal\Component\ProxyBuilder\ProxyBuilderclass \Drupal\Core\ProxyBuilder\ProxyBuilder File core/lib/Drupal/Core/ProxyBuilder/ProxyBuilder.php, line 10 Namespace Drupal\Core\ProxyBuilder Members Name Modifiers Type Description ProxyBuilder::build public function Builds a proxy class string. ProxyBuilder::buildConstructorMethod protected function Builds the constructor