function ActiveFixtureManipulator::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) : void {
    if ($dir) {
        throw new \UnexpectedValueException("{$dir} cannot be specific for a ActiveFixtureManipulator instance");
    }
    $dir = \Drupal::service(PathLocator::class)->getProjectRoot();
    parent::doCommitChanges($dir);
}

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