function ActiveFixtureManipulator::commitChanges

Commits the changes to the directory.

Parameters

string $dir: The directory to commit the changes to.

Overrides FixtureManipulator::commitChanges

File

core/modules/package_manager/tests/modules/fixture_manipulator/src/ActiveFixtureManipulator.php, line 17

Class

ActiveFixtureManipulator
A fixture manipulator for the active directory.

Namespace

Drupal\fixture_manipulator

Code

public function commitChanges(?string $dir = NULL, bool $validate_composer = FALSE) : self {
  if ($dir) {
    throw new \UnexpectedValueException("{$dir} cannot be specific for a ActiveFixtureManipulator instance");
  }
  $dir = \Drupal::service(PathLocator::class)->getProjectRoot();
  parent::doCommitChanges($dir);
  return $this;
}

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