You are here

public function SitePathFactory::__construct in Zircon Profile 8.0

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

Constructs an SitePathFactory instance.

Parameters

\Drupal\Core\DrupalKernelInterface $drupal_kernel: The Drupal kernel.

File

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

Class

SitePathFactory
Gets the site path from the kernel.

Namespace

Drupal\Core

Code

public function __construct(DrupalKernelInterface $drupal_kernel) {
  $this->drupalKernel = $drupal_kernel;
}