function StageBase::stageDirectoryExists
Determines if the stage directory exists.
Return value
bool TRUE if the directory exists, otherwise FALSE.
1 call to StageBase::stageDirectoryExists()
- StageBase::destroy in core/
modules/ package_manager/ src/ StageBase.php - Deletes the stage directory.
File
-
core/
modules/ package_manager/ src/ StageBase.php, line 757
Class
- StageBase
- Creates and manages a stage directory in which to install or update code.
Namespace
Drupal\package_managerCode
public function stageDirectoryExists() : bool {
try {
return is_dir($this->getStageDirectory());
} catch (\LogicException) {
return FALSE;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.