6 * Gets the site path from the kernel.
8 class SitePathFactory {
13 * @var \Drupal\Core\DrupalKernelInterface
15 protected $drupalKernel;
18 * Constructs an SitePathFactory instance.
20 * @param \Drupal\Core\DrupalKernelInterface $drupal_kernel
23 public function __construct(DrupalKernelInterface $drupal_kernel) {
24 $this->drupalKernel = $drupal_kernel;
33 public function get() {
34 return $this->drupalKernel->getSitePath();