You are here

public function SitePathFactory::get in Zircon Profile 8

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

Gets the site path.

Return value

string The site path.

File

core/lib/Drupal/Core/SitePathFactory.php, line 38
Contains \Drupal\Core\SitePathFactory.

Class

SitePathFactory
Gets the site path from the kernel.

Namespace

Drupal\Core

Code

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