function FixtureManipulator::commitChanges

Same name and namespace in other branches
  1. 11.x core/modules/package_manager/tests/modules/fixture_manipulator/src/FixtureManipulator.php \Drupal\fixture_manipulator\FixtureManipulator::commitChanges()

Commits the changes to the directory.

Parameters

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

2 methods override FixtureManipulator::commitChanges()
ActiveFixtureManipulator::commitChanges in core/modules/package_manager/tests/modules/fixture_manipulator/src/ActiveFixtureManipulator.php
Commits the changes to the directory.
StageFixtureManipulator::commitChanges in core/modules/package_manager/tests/modules/fixture_manipulator/src/StageFixtureManipulator.php
Commits the changes to the directory.

File

core/modules/package_manager/tests/modules/fixture_manipulator/src/FixtureManipulator.php, line 349

Class

FixtureManipulator
Manipulates a test fixture using Composer commands.

Namespace

Drupal\fixture_manipulator

Code

public function commitChanges(string $dir) : self {
  $this->doCommitChanges($dir);
  $this->committed = TRUE;
  return $this;
}

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