50 uses of DRUPAL_ROOT in Drupal 10
- BaseThemeMissingTest::setUpFilesystem in core/
tests/ Drupal/ KernelTests/ Core/ Theme/ BaseThemeMissingTest.php - 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.
- 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_get_database_types in core/
includes/ install.inc - Returns all supported database driver installer objects.
- drupal_rewrite_settings in core/
includes/ install.inc - Replaces values in settings.php with values in the submitted array.
- 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.
- FinalExceptionSubscriber::simplifyFileInError in core/
lib/ Drupal/ Core/ EventSubscriber/ FinalExceptionSubscriber.php - Attempts to reduce error verbosity in the error message's file path.
- FormValuesTest::testSimpleAjaxFormValue in core/
tests/ Drupal/ FunctionalJavascriptTests/ Ajax/ FormValuesTest.php - Submits forms with select and checkbox elements via Ajax.
- 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::installParameters in core/
lib/ Drupal/ Core/ Test/ FunctionalTestSetupTrait.php - Returns the parameters that will be used when the test installs Drupal.
- 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.
- InfoParserDynamic::__construct in core/
lib/ Drupal/ Core/ Extension/ InfoParserDynamic.php - InfoParserDynamic constructor.
- InstallerRouterTest::prepareEnvironment in core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerRouterTest.php - Prepares the current environment for running the test.
- InstallerTest::setUpProfile in core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerTest.php - Installer step: Select installation profile.
- InstallerTestBase::setUp in core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerTestBase.php - InstallerTranslationExistingFileTest::setUpLanguage in core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerTranslationExistingFileTest.php - Installer step: Select language.
- InstallerTranslationMultipleLanguageNonInteractiveTest::prepareEnvironment in core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerTranslationMultipleLanguageNonInteractiveTest.php - Prepares the current environment for running the test.
- InstallerTranslationMultipleLanguageTest::setUpLanguage in core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerTranslationMultipleLanguageTest.php - Installer step: Select language.
- Module::getInstallDirectory in core/
lib/ Drupal/ Core/ Updater/ Module.php - Returns the directory where a module should be installed.
- Module::getSchemaUpdates in core/
lib/ Drupal/ Core/ Updater/ Module.php - Returns available database schema updates once a new version is 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 - Form constructor.
- module_load_include in core/
includes/ module.inc - Loads a module include file.
- SessionHandler::write in core/
lib/ Drupal/ Core/ Session/ SessionHandler.php - SiteSettingsForm::validateForm in core/
lib/ Drupal/ Core/ Installer/ Form/ SiteSettingsForm.php - Form validation handler.
- SystemManager::listRequirements in core/
modules/ system/ src/ SystemManager.php - Displays the site status report. Can also be used as a pure check.
- system_library_info_alter in core/
modules/ system/ system.module - Implements hook_library_info_alter().
- system_preprocess_toolbar in core/
modules/ system/ system.module - Implements hook_preprocess_toolbar().
- system_requirements in core/
modules/ system/ system.install - Implements hook_requirements().
- system_theme_registry_alter in core/
modules/ system/ system.module - Implements hook_theme_registry_alter().
- TestDatabase::logRead in core/
lib/ Drupal/ Core/ Test/ TestDatabase.php - Reads the error log and reports any errors as assertion failures.
- 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.
- UpdateUploadTest::testUploadModule in core/
modules/ update/ tests/ src/ Functional/ UpdateUploadTest.php - Tests upload, extraction, and update of a module.
- _drupal_shutdown_function in core/
includes/ bootstrap.inc - Executes registered shutdown functions.