TestService.php

Same filename in this branch
  1. 10 core/modules/system/tests/modules/decorated_service_test/src/TestService.php
  2. 10 core/modules/system/tests/modules/autowire_test/src/TestService.php
Same filename and directory in other branches
  1. 9 core/modules/system/tests/modules/decorated_service_test/src/TestService.php
  2. 9 core/modules/system/tests/modules/services_defaults_test/src/TestService.php
  3. 9 core/modules/system/tests/modules/autowire_test/src/TestService.php
  4. 11.x core/modules/system/tests/modules/decorated_service_test/src/TestService.php
  5. 11.x core/modules/system/tests/modules/services_defaults_test/src/TestService.php
  6. 11.x core/modules/system/tests/modules/autowire_test/src/TestService.php

Namespace

Drupal\services_defaults_test

File

core/modules/system/tests/modules/services_defaults_test/src/TestService.php

View source
<?php

namespace Drupal\services_defaults_test;


/**
 * An autowired service to test _defaults.
 */
class TestService {
    
    /**
     * @var \Drupal\services_defaults_test\TestInjectionInterface
     */
    protected $testInjection;
    
    /**
     * @var \Drupal\services_defaults_test\TestInjection2
     */
    protected $testInjection2;
    public function __construct(TestInjectionInterface $test_injection, TestInjection2 $test_injection2) {
        $this->testInjection = $test_injection;
        $this->testInjection2 = $test_injection2;
    }
    public function getTestInjection() {
        return $this->testInjection;
    }
    public function getTestInjection2() {
        return $this->testInjection2;
    }

}

Classes

Title Deprecated Summary
TestService An autowired service to test _defaults.

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