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

Breadcrumb

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

function 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 87

Class

DrupalKernelInterface
The interface for DrupalKernel, the core of Drupal.

Namespace

Drupal\Core

Code

public function setSitePath($path);

API Navigation

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