function StageFixtureManipulator::begin

Same name and namespace in other branches
  1. main core/modules/package_manager/tests/modules/fixture_manipulator/src/StageFixtureManipulator.php \Drupal\fixture_manipulator\StageFixtureManipulator::begin()

File

core/modules/package_manager/tests/modules/fixture_manipulator/src/StageFixtureManipulator.php, line 54

Class

StageFixtureManipulator
A fixture manipulator service that commits changes after begin.

Namespace

Drupal\fixture_manipulator

Code

public function begin(PathInterface $activeDir, PathInterface $stagingDir, ?PathListInterface $exclusions = NULL, ?OutputCallbackInterface $callback = NULL, ?int $timeout = ProcessInterface::DEFAULT_TIMEOUT) : void {
  $this->inner
    ->begin($activeDir, $stagingDir, $exclusions, $callback, $timeout);
  if ($this->getQueuedManipulationItems()) {
    $this->doCommitChanges($stagingDir->absolute());
  }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.