DRUPAL_ROOT
Same name and namespace in other branches
- 9 core/includes/bootstrap.inc \DRUPAL_ROOT
- 8.9.x core/includes/bootstrap.inc \DRUPAL_ROOT
- 11.x core/includes/bootstrap.inc \DRUPAL_ROOT
Defines the root directory of the Drupal installation.
This strips two levels of directories off the current directory.
53 uses of DRUPAL_ROOT
- BrowserHtmlDebugTrait::initBrowserOutputFile in core/
tests/ Drupal/ Tests/ BrowserHtmlDebugTrait.php - Creates the directory to store browser output.
- CredentialForm::getDatabaseTypes in core/
modules/ migrate_drupal_ui/ src/ Form/ CredentialForm.php - Returns all supported database driver installer objects.
- CredentialFormTest::testCredentialFrom in core/
modules/ migrate_drupal_ui/ tests/ src/ Functional/ CredentialFormTest.php - Test the credential form.
- CronLoggingUpdateTest::setDatabaseDumpFiles in core/
modules/ system/ tests/ src/ Functional/ Update/ CronLoggingUpdateTest.php - Set database dump files to be used.
- Database::getDriverList in core/
lib/ Drupal/ Core/ Database/ Database.php - Returns the list provider for available database drivers.
File
-
core/
includes/ bootstrap.inc, line 63
Code
define('DRUPAL_ROOT', dirname(__DIR__, 2));
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.