public function DrupalKernel::setSitePath in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/DrupalKernel.php \Drupal\Core\DrupalKernel::setSitePath()
Set the current site path.
Parameters
string $path: The current site path.
Throws
\LogicException In case the kernel is already booted.
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 383 - Contains \Drupal\Core\DrupalKernel.
Class
- DrupalKernel
- The DrupalKernel class is the core of Drupal itself.
Namespace
Drupal\CoreCode
public function setSitePath($path) {
if ($this->booted) {
throw new \LogicException('Site path cannot be changed after calling boot()');
}
$this->sitePath = $path;
}