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

Breadcrumb

  1. Drupal Core 11.1.x
  2. bootstrap.inc

DRUPAL_ROOT

Defines the root directory of the Drupal installation.

This strips two levels of directories off the current directory.

31 uses of DRUPAL_ROOT
CredentialForm::getDatabaseTypes in core/modules/migrate_drupal_ui/src/Form/CredentialForm.php
Returns all supported database driver installer objects.
Database::getDriverList in core/lib/Drupal/Core/Database/Database.php
Returns the list provider for available database drivers.
DatabaseDriver::load in core/lib/Drupal/Core/Extension/DatabaseDriver.php
Loads the main extension file, if any.
drupal_check_module in core/includes/install.inc
Checks a module's requirements.
drupal_generate_test_ua in core/includes/bootstrap.inc
Generates a user agent string with a HMAC and timestamp for tests.

... See full list

File

core/includes/bootstrap.inc, line 45

Code

define('DRUPAL_ROOT', dirname(__DIR__, 2));
RSS feed
Powered by Drupal