function DrupalKernelInterface::setSitePath
Same name in other branches
- 9 core/lib/Drupal/Core/DrupalKernelInterface.php \Drupal\Core\DrupalKernelInterface::setSitePath()
- 8.9.x core/lib/Drupal/Core/DrupalKernelInterface.php \Drupal\Core\DrupalKernelInterface::setSitePath()
- 11.x core/lib/Drupal/Core/DrupalKernelInterface.php \Drupal\Core\DrupalKernelInterface::setSitePath()
Set the current site path directory.
Format: "folder-name/child-folder" usually uses "sites/default".
Parameters
string $path: The current site path.
Throws
\LogicException In case the kernel is already booted.
1 method overrides DrupalKernelInterface::setSitePath()
- DrupalKernel::setSitePath in core/
lib/ Drupal/ Core/ DrupalKernel.php - Set the current site path directory.
File
-
core/
lib/ Drupal/ Core/ DrupalKernelInterface.php, line 88
Class
- DrupalKernelInterface
- The interface for DrupalKernel, the core of Drupal.
Namespace
Drupal\CoreCode
public function setSitePath($path);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.