public function PathLocator::getStageDirectory in Automatic Updates 8.2
Returns the path of the directory where updates should be staged.
This directory may be made world-writeable for clean-up, so it should be somewhere that doesn't put the Drupal installation at risk.
Return value
string The absolute path of the directory where updates should be staged.
See also
\Drupal\automatic_updates\ComposerStager\Cleaner::clean()
File
- src/
PathLocator.php, line 62
Class
- PathLocator
- Computes file system paths that are needed for automatic updates.
Namespace
Drupal\automatic_updatesCode
public function getStageDirectory() : string {
// Append the site ID to the directory in order to support parallel test
// runs, or multiple sites hosted on the same server.
$site_id = $this->configFactory
->get('system.site')
->get('uuid');
return FileSystem::getOsTemporaryDirectory() . DIRECTORY_SEPARATOR . '.automatic_updates_stage_' . $site_id;
}