protected function InstallCommand::getSitePath in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Command/InstallCommand.php \Drupal\Core\Command\InstallCommand::getSitePath()
- 9 core/lib/Drupal/Core/Command/InstallCommand.php \Drupal\Core\Command\InstallCommand::getSitePath()
Gets the site path.
Defaults to 'sites/default'. For testing purposes this can be overridden using the DRUPAL_DEV_SITE_PATH environment variable.
Return value
string The site path to use.
File
- core/
lib/ Drupal/ Core/ Command/ InstallCommand.php, line 231
Class
- InstallCommand
- Installs a Drupal site for local testing/development.
Namespace
Drupal\Core\CommandCode
protected function getSitePath() {
return getenv('DRUPAL_DEV_SITE_PATH') ?: 'sites/default';
}