You are here

protected function ProxyBuilder::buildUseStatements in Zircon Profile 8

Same name in this branch
  1. 8 core/lib/Drupal/Core/ProxyBuilder/ProxyBuilder.php \Drupal\Core\ProxyBuilder\ProxyBuilder::buildUseStatements()
  2. 8 core/lib/Drupal/Component/ProxyBuilder/ProxyBuilder.php \Drupal\Component\ProxyBuilder\ProxyBuilder::buildUseStatements()
Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/ProxyBuilder/ProxyBuilder.php \Drupal\Core\ProxyBuilder\ProxyBuilder::buildUseStatements()

{@inheritdoc{

Overrides ProxyBuilder::buildUseStatements

File

core/lib/Drupal/Core/ProxyBuilder/ProxyBuilder.php, line 20
Contains \Drupal\Core\ProxyBuilder\ProxyBuilder.

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 $output;
}