constant DRUPAL_ROOT

Defines the root directory of the Drupal installation.

This strips two levels of directories off the current directory.

111 uses of DRUPAL_ROOT
AccountFormController::form in drupal/core/modules/user/lib/Drupal/user/AccountFormController.php
Overrides Drupal\Core\Entity\EntityFormController::form().
AggregatorPluginManager::__construct in drupal/core/modules/aggregator/lib/Drupal/aggregator/Plugin/AggregatorPluginManager.php
Constructs a AggregatorPluginManager object.
AnnotatedClassDiscovery::__construct in drupal/core/lib/Drupal/Core/Plugin/Discovery/AnnotatedClassDiscovery.php
Constructs an AnnotatedClassDiscovery object.
AnnotatedClassDiscoveryTest::setUp in drupal/core/modules/system/lib/Drupal/system/Tests/Plugin/Discovery/AnnotatedClassDiscoveryTest.php
Sets up unit test environment.
authorize_get_filetransfer in drupal/core/includes/authorize.inc
Gets a FileTransfer class for a specific transfer method and settings.

... See full list

File

drupal/core/includes/bootstrap.inc, line 240
Functions that need to be loaded on every Drupal request.

Code

define('DRUPAL_ROOT', dirname(dirname(__DIR__)));