function BarClass::setBaz
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/DependencyInjection/Fixture/BarClass.php \Drupal\Tests\Core\DependencyInjection\Fixture\BarClass::setBaz()
- 8.9.x core/tests/Drupal/Tests/Core/DependencyInjection/Fixture/BarClass.php \Drupal\Tests\Core\DependencyInjection\Fixture\BarClass::setBaz()
- 11.x core/tests/Drupal/Tests/Core/DependencyInjection/Fixture/BarClass.php \Drupal\Tests\Core\DependencyInjection\Fixture\BarClass::setBaz()
Setter for our BazClass object.
This method is called during the service initialization.
Parameters
\Drupal\Tests\Core\DependencyInjection\Fixture\BazClass $baz: A BazClass object to store.
File
-
core/
tests/ Drupal/ Tests/ Core/ DependencyInjection/ Fixture/ BarClass.php, line 30
Class
- BarClass
- Stub class which acts as a service to test the container.
Namespace
Drupal\Tests\Core\DependencyInjection\FixtureCode
public function setBaz(BazClass $baz) {
$this->baz = $baz;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.