You are here

public function Fixtures::io in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Fixtures.php \Drupal\Tests\Composer\Plugin\Scaffold\Fixtures::io()
  2. 9 core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Fixtures.php \Drupal\Tests\Composer\Plugin\Scaffold\Fixtures::io()

Gets an IO fixture.

Return value

\Composer\IO\IOInterface A Composer IOInterface to write to; output may be retrieved via Fixtures::getOutput().

File

core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Fixtures.php, line 57

Class

Fixtures
Convenience class for creating fixtures.

Namespace

Drupal\Tests\Composer\Plugin\Scaffold

Code

public function io() {
  if (!$this->io) {
    $this->io = new BufferIO();
  }
  return $this->io;
}