You are here

protected function ProxyBuilder::buildUseStatements in Drupal 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. 9 core/lib/Drupal/Core/ProxyBuilder/ProxyBuilder.php \Drupal\Core\ProxyBuilder\ProxyBuilder::buildUseStatements()
  2. 10 core/lib/Drupal/Core/ProxyBuilder/ProxyBuilder.php \Drupal\Core\ProxyBuilder\ProxyBuilder::buildUseStatements()

Build the required use statements of the proxy class.

Return value

string

Overrides ProxyBuilder::buildUseStatements

File

core/lib/Drupal/Core/ProxyBuilder/ProxyBuilder.php, line 15

Class

ProxyBuilder
Extend the component proxy builder by using the DependencySerializationTrait.

Namespace

Drupal\Core\ProxyBuilder

Code

protected function buildUseStatements() {
  $output = parent::buildUseStatements();
  $output .= 'use \\Drupal\\Core\\DependencyInjection\\DependencySerializationTrait;' . "\n\n";
  return $output;
}