public function SitePathFactory::get in Drupal 9
Same name and namespace in other branches
- 8 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 33
Class
- SitePathFactory
- Gets the site path from the kernel.
Namespace
Drupal\CoreCode
public function get() {
return $this->drupalKernel
->getContainer()
->getParameter('site.path');
}