public DrupalKernel::setSitePath($path)
Set the current site path.
string $path: The current site path.
\LogicException In case the kernel is already booted.
Overrides DrupalKernelInterface::setSitePath
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