function StageBase::getStageDirectory
Returns the path of the directory where changes should be staged.
Return value
string The absolute path of the directory where changes should be staged.
Throws
\LogicException If this method is called before the stage has been created or claimed.
5 calls to StageBase::getStageDirectory()
- StageBase::apply in core/
modules/ package_manager/ src/ StageBase.php - Applies staged changes to the active directory.
- StageBase::create in core/
modules/ package_manager/ src/ StageBase.php - Copies the active code base into the stage directory.
- StageBase::destroy in core/
modules/ package_manager/ src/ StageBase.php - Deletes the stage directory.
- StageBase::require in core/
modules/ package_manager/ src/ StageBase.php - Adds or updates packages in the stage directory.
- StageBase::stageDirectoryExists in core/
modules/ package_manager/ src/ StageBase.php - Determines if the stage directory exists.
File
-
core/
modules/ package_manager/ src/ StageBase.php, line 725
Class
- StageBase
- Creates and manages a stage directory in which to install or update code.
Namespace
Drupal\package_managerCode
public function getStageDirectory() : string {
if (!$this->lock) {
throw new \LogicException(__METHOD__ . '() cannot be called because the stage has not been created or claimed.');
}
return $this->getStagingRoot() . DIRECTORY_SEPARATOR . $this->lock[0];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.