function DrupalKernel::setSitePath
Same name in other branches
- 9 core/lib/Drupal/Core/DrupalKernel.php \Drupal\Core\DrupalKernel::setSitePath()
- 10 core/lib/Drupal/Core/DrupalKernel.php \Drupal\Core\DrupalKernel::setSitePath()
- 11.x core/lib/Drupal/Core/DrupalKernel.php \Drupal\Core\DrupalKernel::setSitePath()
Overrides DrupalKernelInterface::setSitePath
1 call to DrupalKernel::setSitePath()
- DrupalKernel::initializeSettings in core/
lib/ Drupal/ Core/ DrupalKernel.php - Locate site path and initialize settings singleton.
File
-
core/
lib/ Drupal/ Core/ DrupalKernel.php, line 424
Class
- DrupalKernel
- The DrupalKernel class is the core of Drupal itself.
Namespace
Drupal\CoreCode
public function setSitePath($path) {
if ($this->booted && $path !== $this->sitePath) {
throw new \LogicException('Site path cannot be changed after calling boot()');
}
$this->sitePath = $path;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.