function FixtureManipulator::setCorePackageVersion

Modifies core packages.

Parameters

string $version: Target version.

File

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

Class

FixtureManipulator
Manipulates a test fixture using Composer commands.

Namespace

Drupal\fixture_manipulator

Code

public function setCorePackageVersion(string $version) : self {
    $this->setVersion('drupal/core', $version);
    $this->setVersion('drupal/core-recommended', $version);
    $this->setVersion('drupal/core-dev', $version);
    return $this;
}

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