TestClassWithSetter::$injectedService

Same name and namespace in other branches
  1. main core/tests/Drupal/Tests/Core/DependencyInjection/AutowiredInstanceTraitTest.php \Drupal\Tests\Core\DependencyInjection\TestClassWithSetter::injectedService

The injected service.

Type: injectedService

File

core/tests/Drupal/Tests/Core/DependencyInjection/AutowiredInstanceTraitTest.php, line 50

Class

TestClassWithSetter
Test class with a setter method for dependency injection.

Namespace

Drupal\Tests\Core\DependencyInjection

Code

public \stdClass $injectedService;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.