UpdateRoot
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.
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.
The Update Manager will ensure that project files can only be copied to specific subdirectories of this root path.