class UpdateRoot (View source)

Gets the root path used by the Update Manager to install or update projects.

Properties

protected DrupalKernelInterface $drupalKernel

The Drupal kernel.

protected RequestStack $requestStack

The request stack.

protected string $updateRoot

The update root.

Methods

__construct(DrupalKernelInterface $drupal_kernel, RequestStack $request_stack)

Constructs an UpdateRootFactory instance.

void
set(string $update_root)

Sets the root path under which projects are installed or updated.

string
__toString()

Gets the root path under which projects are installed or updated.

Details

__construct(DrupalKernelInterface $drupal_kernel, RequestStack $request_stack)

Constructs an UpdateRootFactory instance.

Parameters

DrupalKernelInterface $drupal_kernel

The Drupal kernel.

RequestStack $request_stack

The request stack.

void set(string $update_root)

Sets the root path under which projects are installed or updated.

Parameters

string $update_root

The update root.

Return Value

void

string __toString()

Gets the root path under which projects are installed or updated.

The Update Manager will ensure that project files can only be copied to specific subdirectories of this root path.

Return Value

string