constant DRUPAL_ROOT in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/includes/bootstrap.inc \DRUPAL_ROOT
Defines the root directory of the Drupal installation.
This strips two levels of directories off the current directory.
52 uses of DRUPAL_ROOT
- BrowserTestBase::changeDatabasePrefix in core/
modules/ simpletest/ src/ BrowserTestBase.php - Changes the database connection to the prefixed one.
- BrowserTestBase::installDrupal in core/
modules/ simpletest/ src/ BrowserTestBase.php - Installs Drupal into the Simpletest site.
- BrowserTestBase::prepareDatabasePrefix in core/
modules/ simpletest/ src/ BrowserTestBase.php - Generates a database prefix for running tests.
- BrowserTestBase::prepareEnvironment in core/
modules/ simpletest/ src/ BrowserTestBase.php - Prepares the current environment for running the test.
- BrowserTestBase::writeSettings in core/
modules/ simpletest/ src/ BrowserTestBase.php - Rewrites the settings.php file of the test site.
File
- core/
includes/ bootstrap.inc, line 126 - Functions that need to be loaded on every Drupal request.
Code
define('DRUPAL_ROOT', dirname(dirname(__DIR__)));