function NoOpStager::setLockFileShouldChange
Sets whether ::stage() should simulate a change in the lock file.
Parameters
bool $value: (optional) Whether to simulate a change in the lock file when ::stage() is called. Defaults to TRUE.
1 call to NoOpStager::setLockFileShouldChange()
- LockFileValidatorTest::testApplyWithNoChange in core/
modules/ package_manager/ tests/ src/ Kernel/ LockFileValidatorTest.php - Tests validation when the staged and active lock files are identical.
File
-
core/
modules/ package_manager/ tests/ modules/ package_manager_bypass/ src/ NoOpStager.php, line 69
Class
- NoOpStager
- A composer-stager Stager implementation that does nothing, except logging.
Namespace
Drupal\package_manager_bypassCode
public static function setLockFileShouldChange(bool $value = TRUE) : void {
\Drupal::state()->set(static::class . ' lock', $value);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.