public static function Drupal::root in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal.php \Drupal::root()
- 9 core/lib/Drupal.php \Drupal::root()
Gets the app root.
Return value
string
26 calls to Drupal::root()
- DatabaseVersionCheckUpdateTest::testUpdate in core/
modules/ system/ tests/ src/ Functional/ Update/ DatabaseVersionCheckUpdateTest.php - Tests that updates fail if the database does not meet the minimum version.
- DbCommandBase::getDatabaseConnection in core/
lib/ Drupal/ Core/ Command/ DbCommandBase.php - Parse input options decide on a database.
- drupal_check_profile in core/
includes/ install.inc - Checks an installation profile's requirements.
- drupal_verify_profile in core/
includes/ install.inc - Verifies that all dependencies are met for a given installation profile.
- EntityFilteringThemeTest::setUp in core/
modules/ system/ tests/ src/ Functional/ Theme/ EntityFilteringThemeTest.php
File
- core/
lib/ Drupal.php, line 209
Class
- Drupal
- Static Service Container wrapper.
Code
public static function root() {
return static::getContainer()
->getParameter('app.root');
}