public DrupalKernel::setSitePath($path)
Set the current site path.
Parameters
string $path: The current site path.
Throws
\LogicException In case the kernel is already booted.
Overrides DrupalKernelInterface::setSitePath
File
- core/lib/Drupal/Core/DrupalKernel.php, line 408
Class
- DrupalKernel
- The DrupalKernel class is the core of Drupal itself.
Namespace
Drupal\Core
Code
public function setSitePath($path) { if ($this->booted) { throw new \LogicException('Site path cannot be changed after calling boot()'); } $this->sitePath = $path; }
Please login to continue.