class SitePathFactory (View source)

Gets the site path from the kernel.

Properties

protected DrupalKernelInterface $drupalKernel

The Drupal kernel.

Methods

__construct(DrupalKernelInterface $drupal_kernel)

Constructs a SitePathFactory instance.

string
get()

Gets the site path.

Details

__construct(DrupalKernelInterface $drupal_kernel)

Constructs a SitePathFactory instance.

Parameters

DrupalKernelInterface $drupal_kernel

The Drupal kernel.

string get()

Gets the site path.

Return Value

string

The site path.