Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DrupalKernel.php

function DrupalKernel::setSitePath

Overrides DrupalKernelInterface::setSitePath

1 call to DrupalKernel::setSitePath()
DrupalKernel::initializeSettings in core/lib/Drupal/Core/DrupalKernel.php
Locate site path and initialize settings singleton.

File

core/lib/Drupal/Core/DrupalKernel.php, line 452

Class

DrupalKernel
The DrupalKernel class is the core of Drupal itself.

Namespace

Drupal\Core

Code

public function setSitePath($path) {
    if ($this->booted && $path !== $this->sitePath) {
        throw new \LogicException('Site path cannot be changed after calling boot()');
    }
    $this->sitePath = $path;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal