public function SetterInjection::setter in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/new_dependency_test/src/SetterInjection.php \Drupal\new_dependency_test\SetterInjection::setter()
- 9 core/modules/system/tests/modules/new_dependency_test/src/SetterInjection.php \Drupal\new_dependency_test\SetterInjection::setter()
SetterInjection constructor.
Parameters
\Drupal\new_dependency_test_with_service\NewService $service: The service of the new module.
File
- core/
modules/ system/ tests/ modules/ new_dependency_test/ src/ SetterInjection.php, line 25
Class
- SetterInjection
- Generic service which uses setter injection.
Namespace
Drupal\new_dependency_testCode
public function setter(NewService $service) {
$this->service = $service;
}