function TestService::getTestInjection2

Same name in this branch
  1. 9 core/modules/system/tests/modules/services_defaults_test/src/TestService.php \Drupal\services_defaults_test\TestService::getTestInjection2()
Same name in other branches
  1. 10 core/modules/system/tests/modules/services_defaults_test/src/TestService.php \Drupal\services_defaults_test\TestService::getTestInjection2()
  2. 10 core/modules/system/tests/modules/autowire_test/src/TestService.php \Drupal\autowire_test\TestService::getTestInjection2()
  3. 11.x core/modules/system/tests/modules/services_defaults_test/src/TestService.php \Drupal\services_defaults_test\TestService::getTestInjection2()
  4. 11.x core/modules/system/tests/modules/autowire_test/src/TestService.php \Drupal\autowire_test\TestService::getTestInjection2()

File

core/modules/system/tests/modules/autowire_test/src/TestService.php, line 26

Class

TestService

Namespace

Drupal\autowire_test

Code

public function getTestInjection2() : TestInjection2 {
    return $this->testInjection2;
}

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