function AutowireTestClass::setParameter
Attributes
#[Required]
File
-
core/
tests/ Drupal/ Tests/ Core/ DependencyInjection/ AutowiredInstanceTraitTest.php, line 143
Class
- AutowireTestClass
- Test class covering service and parameter autowiring scenarios.
Namespace
Drupal\Tests\Core\DependencyInjectionCode
public function setParameter(#[Autowire('%setter.parameter%')] string $parameter) : void {
$this->setterParameter = $parameter;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.