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 $output;
}
doc_Drupal
2016-10-29 09:35:09
Comments
Leave a Comment

Please login to continue.