class AppRootFactory (View source)

Gets the app root from the kernel.

Properties

protected DrupalKernelInterface $drupalKernel

The Drupal kernel.

Methods

__construct(DrupalKernelInterface $drupal_kernel)

Constructs an AppRootFactory instance.

string
get()

Gets the app root.

Details

__construct(DrupalKernelInterface $drupal_kernel)

Constructs an AppRootFactory instance.

Parameters

DrupalKernelInterface $drupal_kernel

The Drupal kernel.

string get()

Gets the app root.

Return Value

string

The app root.