public function Definition::setFactoryService

Sets the name of the service that acts as a factory using the factory method.

@api

Parameters

string $factoryService The factory service id:

Return value

Definition The current instance

1 call to Definition::setFactoryService()
DefinitionDecorator::setFactoryService in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/DefinitionDecorator.php
@api
1 method overrides Definition::setFactoryService()
DefinitionDecorator::setFactoryService in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/DefinitionDecorator.php
@api

File

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Definition.php, line 133

Class

Definition
Definition represents a service definition.

Namespace

Symfony\Component\DependencyInjection

Code

public function setFactoryService($factoryService) {
  $this->factoryService = $factoryService;
  return $this;
}