You are here

public function AppRootFactory::get in Zircon Profile 8

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

Gets the app root.

Return value

string

File

core/lib/Drupal/Core/AppRootFactory.php, line 37
Contains \Drupal\Core\AppRootFactory.

Class

AppRootFactory
Gets the app root from the kernel.

Namespace

Drupal\Core

Code

public function get() {
  return $this->drupalKernel
    ->getAppRoot();
}