function TestClass::__construct
Same name in other branches
- 8.9.x core/modules/system/tests/modules/service_provider_test/src/TestClass.php \Drupal\service_provider_test\TestClass::__construct()
- 10 core/modules/system/tests/modules/service_provider_test/src/TestClass.php \Drupal\service_provider_test\TestClass::__construct()
- 11.x 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
Namespace
Drupal\service_provider_testCode
public function __construct(StateInterface $state) {
$this->state = $state;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.