You are here

public function TestClass::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/system/tests/modules/service_provider_test/src/TestClass.php \Drupal\service_provider_test\TestClass::__construct()

Constructor.

Parameters

\Drupal\Core\State\StateInterface $state: The state key value store.

File

core/modules/system/tests/modules/service_provider_test/src/TestClass.php, line 31

Class

TestClass

Namespace

Drupal\service_provider_test

Code

public function __construct(StateInterface $state) {
  $this->state = $state;
}