function StageBase::isAvailable
Determines if the stage directory can be created.
Return value
bool TRUE if the stage directory can be created, otherwise FALSE.
2 calls to StageBase::isAvailable()
- StageBase::claim in core/
modules/ package_manager/ src/ StageBase.php - Attempts to claim the stage.
- StageBase::create in core/
modules/ package_manager/ src/ StageBase.php - Copies the active code base into the stage directory.
File
-
core/
modules/ package_manager/ src/ StageBase.php, line 218
Class
- StageBase
- Creates and manages a stage directory in which to install or update code.
Namespace
Drupal\package_managerCode
public final function isAvailable() : bool {
return empty($this->tempStore
->getMetadata(static::TEMPSTORE_LOCK_KEY));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.