function DependencySerializationTestDummy::__construct
Same name in other branches
- 8.9.x core/tests/Drupal/Tests/Core/DependencyInjection/DependencySerializationTest.php \Drupal\Tests\Core\DependencyInjection\DependencySerializationTestDummy::__construct()
- 10 core/tests/Drupal/Tests/Core/DependencyInjection/DependencySerializationTest.php \Drupal\Tests\Core\DependencyInjection\DependencySerializationTestDummy::__construct()
- 11.x core/tests/Drupal/Tests/Core/DependencyInjection/DependencySerializationTest.php \Drupal\Tests\Core\DependencyInjection\DependencySerializationTestDummy::__construct()
Constructs a new TestClass object.
Parameters
object $service: A test service.
File
-
core/
tests/ Drupal/ Tests/ Core/ DependencyInjection/ DependencySerializationTest.php, line 101
Class
- DependencySerializationTestDummy
- Defines a test class which has a single service as dependency.
Namespace
Drupal\Tests\Core\DependencyInjectionCode
public function __construct(\stdClass $service) {
$this->service = $service;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.