55 uses of DRUPAL_ROOT

BrowserHtmlDebugTrait::initBrowserOutputFile in core/tests/Drupal/Tests/BrowserHtmlDebugTrait.php
Creates the directory to store browser output.
ConfigInstallProfileUnmetDependenciesTest::copyTestingOverrides in core/modules/config/tests/src/Functional/ConfigInstallProfileUnmetDependenciesTest.php
Copy the testing_config_overrides install profile.
ConfigTranslationInstallTest::setUpLanguage in core/modules/config_translation/tests/src/Functional/ConfigTranslationInstallTest.php
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.
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
DefaultConfigTest::assertExtensionConfig in core/tests/Drupal/KernelTests/Config/DefaultConfigTest.php
Tests that the config provided by the extension is correct.
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.
drupal_valid_test_ua in core/includes/bootstrap.inc
Returns the test prefix if this is an internal request from a test.
example.settings.local.php in sites/example.settings.local.php
Local development override configuration feature.
example.settings.local.php in core/assets/scaffold/files/example.settings.local.php
Local development override configuration feature.
Extension::__wakeup in core/lib/Drupal/Core/Extension/Extension.php
Magic method implementation to unserialize the extension object.
FinalExceptionSubscriber::simplifyFileInError in core/lib/Drupal/Core/EventSubscriber/FinalExceptionSubscriber.php
Attempts to reduce error verbosity in the error message's file path.
FormValuesTest::testSimpleInvalidCallbacksAjaxFormValue in core/tests/Drupal/FunctionalJavascriptTests/Ajax/FormValuesTest.php
Tests that AJAX elements with invalid callbacks return error code 500.
FunctionalTestSetupTrait::doInstall in core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php
Execute the non-interactive installer.
FunctionalTestSetupTrait::initSettings in core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php
Initialize settings created during install.
FunctionalTestSetupTrait::prepareEnvironment in core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php
Prepares the current environment for running the test.
FunctionalTestSetupTrait::prepareSettings in core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php
Prepares site settings and services before installation.
FunctionalTestSetupTrait::writeSettings in core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php
Rewrites the settings.php file of the test site.
GlobalThemeSettingsDefaultLogoUrlUpdateTest::setDatabaseDumpFiles in core/modules/system/tests/src/Functional/Update/GlobalThemeSettingsDefaultLogoUrlUpdateTest.php
Set database dump files to be used.
InstallerRouterTest::prepareEnvironment in core/tests/Drupal/FunctionalTests/Installer/InstallerRouterTest.php
InstallerTest::setUpProfile in core/tests/Drupal/FunctionalTests/Installer/InstallerTest.php
InstallerTestBase::installDrupal in core/tests/Drupal/FunctionalTests/Installer/InstallerTestBase.php
We are testing the installer, so set up a minimal environment for that.
InstallerTranslationExistingFileTest::setUpLanguage in core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationExistingFileTest.php
InstallerTranslationMultipleLanguageNonInteractiveTest::prepareEnvironment in core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationMultipleLanguageNonInteractiveTest.php
InstallerTranslationMultipleLanguageTest::setUpLanguage in core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationMultipleLanguageTest.php
InstallerTranslationNonStandardFilenamesTest::prepareEnvironment in core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationNonStandardFilenamesTest.php
MediaSettingsDefaultIframeDomainUpdateTest::setDatabaseDumpFiles in core/modules/media/tests/src/Functional/Update/MediaSettingsDefaultIframeDomainUpdateTest.php
Set database dump files to be used.
Module::getInstallDirectory in core/lib/Drupal/Core/Updater/Module.php
Returns the directory where a module should be installed.
ModulesListForm::buildForm in core/modules/system/src/Form/ModulesListForm.php
Form constructor.
ModulesListForm::buildModuleList in core/modules/system/src/Form/ModulesListForm.php
Helper function for building a list of modules to install.
ModulesUninstallForm::buildForm in core/modules/system/src/Form/ModulesUninstallForm.php
PerformanceTestBase::prepareEnvironment in core/tests/Drupal/FunctionalJavascriptTests/PerformanceTestBase.php
SettingsEditor::rewrite in core/lib/Drupal/Core/Site/SettingsEditor.php
Replaces values in settings.php with values in the submitted array.
SiteSettingsForm::buildForm in core/lib/Drupal/Core/Installer/Form/SiteSettingsForm.php
SiteSettingsForm::submitForm in core/lib/Drupal/Core/Installer/Form/SiteSettingsForm.php
SiteSettingsForm::validateForm in core/lib/Drupal/Core/Installer/Form/SiteSettingsForm.php
StandardRecipeInstallTest::setUpSite in core/tests/Drupal/FunctionalTests/Core/Recipe/StandardRecipeInstallTest.php
Final installer step: Configure site.
SuperUserAccessInstallTest::prepareEnvironment in core/tests/Drupal/FunctionalTests/Installer/SuperUserAccessInstallTest.php
SystemHooks::libraryInfoAlter in core/modules/system/src/Hook/SystemHooks.php
Implements hook_library_info_alter().
SystemHooks::themeRegistryAlter in core/modules/system/src/Hook/SystemHooks.php
Implements hook_theme_registry_alter().
SystemManager::listRequirements in core/modules/system/src/SystemManager.php
Displays the site status report. Can also be used as a pure check.
system_preprocess_toolbar in core/modules/system/system.module
Implements hook_preprocess_toolbar().
system_requirements in core/modules/system/system.install
Implements hook_requirements().
TestSetupTrait::changeDatabasePrefix in core/lib/Drupal/Core/Test/TestSetupTrait.php
Changes the database connection to the prefixed one.
Theme::getInstallDirectory in core/lib/Drupal/Core/Updater/Theme.php
Returns the directory where a theme should be installed.
UmamiMultilingualInstallTest::setUpLanguage in core/profiles/demo_umami/tests/src/Functional/UmamiMultilingualInstallTest.php
UncaughtExceptionTest::assertErrorLogged in core/tests/Drupal/FunctionalTests/Bootstrap/UncaughtExceptionTest.php
Asserts that a specific error has been logged to the PHP error log.
UncaughtExceptionTest::assertNoErrorsLogged in core/tests/Drupal/FunctionalTests/Bootstrap/UncaughtExceptionTest.php
Asserts that no errors have been logged to the PHP error.log thus far.
UpdateSettingsDefaultFetchUrlUpdateTest::setDatabaseDumpFiles in core/modules/update/tests/src/Functional/Update/UpdateSettingsDefaultFetchUrlUpdateTest.php
Set database dump files to be used.
UpdateUploadTest::testUploadModule in core/modules/update/tests/src/Functional/UpdateUploadTest.php
Tests upload, extraction, and update of a module.
Y2038TimestampUpdateTest::setDatabaseDumpFiles in core/modules/system/tests/src/Functional/Update/Y2038TimestampUpdateTest.php
Set database dump files to be used.
_drupal_shutdown_function in core/includes/bootstrap.inc
Executes registered shutdown functions.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.