protected static DrupalKernel::guessApplicationRoot()
Determine the application root directory based on assumptions.
Return value
string The application root.
File
- core/lib/Drupal/Core/DrupalKernel.php, line 301
Class
- DrupalKernel
- The DrupalKernel class is the core of Drupal itself.
Namespace
Drupal\Core
Code
protected static function guessApplicationRoot() { return dirname(dirname(substr(__DIR__, 0, -strlen(__NAMESPACE__)))); }
Please login to continue.