You are here

public static function Drupal::root in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal.php \Drupal::root()

Gets the app root.

Return value

string

75 calls to Drupal::root()
AnnotatedClassDiscoveryTest::setUp in core/modules/system/src/Tests/Plugin/Discovery/AnnotatedClassDiscoveryTest.php
Performs setup tasks before each individual test method is run.
color_get_info in core/modules/color/color.module
Retrieves the Color module information for a particular theme.
CompatibilityFixTest::setUp in core/modules/system/src/Tests/Update/CompatibilityFixTest.php
Performs setup tasks before each individual test method is run.
CustomAnnotationClassDiscoveryTest::setUp in core/modules/system/src/Tests/Plugin/Discovery/CustomAnnotationClassDiscoveryTest.php
Performs setup tasks before each individual test method is run.
CustomDirectoryAnnotatedClassDiscoveryTest::setUp in core/modules/system/src/Tests/Plugin/Discovery/CustomDirectoryAnnotatedClassDiscoveryTest.php
Performs setup tasks before each individual test method is run.

... See full list

File

core/lib/Drupal.php, line 180
Contains \Drupal.

Class

Drupal
Static Service Container wrapper.

Code

public static function root() {
  return static::getContainer()
    ->get('app.root');
}