public function DrupalKernel::setSitePath
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 379
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; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!DrupalKernel.php/function/DrupalKernel::setSitePath/8.1.x