public function Fixtures::getComposer in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Fixtures.php \Drupal\Tests\Composer\Plugin\Scaffold\Fixtures::getComposer()
- 9 core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Fixtures.php \Drupal\Tests\Composer\Plugin\Scaffold\Fixtures::getComposer()
Gets the Composer object.
Return value
\Composer\Composer The main Composer object, needed by the scaffold Handler, etc.
File
- core/
tests/ Drupal/ Tests/ Composer/ Plugin/ Scaffold/ Fixtures.php, line 70
Class
- Fixtures
- Convenience class for creating fixtures.
Namespace
Drupal\Tests\Composer\Plugin\ScaffoldCode
public function getComposer() {
if (!$this->composer) {
$this->composer = Factory::create($this
->io(), NULL, TRUE);
}
return $this->composer;
}