TestInjection3.php

Same filename and directory in other branches
  1. 10 core/modules/system/tests/modules/autowire_test/src/TestInjection3.php

Namespace

Drupal\autowire_test

File

core/modules/system/tests/modules/autowire_test/src/TestInjection3.php

View source
<?php

namespace Drupal\autowire_test;

use Drupal\Core\Security\TrustedCallbackInterface;

/**
 * A service that is autowired.
 */
class TestInjection3 implements TrustedCallbackInterface, TestInjectionInterface {
    
    /**
     * {@inheritdoc}
     */
    public static function trustedCallbacks() {
        return [];
    }

}

Classes

Title Deprecated Summary
TestInjection3 A service that is autowired.

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