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 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;
}
doc_Drupal
2016-10-29 09:03:04
Comments
Leave a Comment

Please login to continue.