DrupalKernel::guessApplicationRoot

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__))));
}
doc_Drupal
2016-10-29 09:03:01
Comments
Leave a Comment

Please login to continue.