function UpdateRoot::set

Same name in other branches
  1. 10 core/modules/update/src/UpdateRoot.php \Drupal\update\UpdateRoot::set()
  2. 11.x core/modules/update/src/UpdateRoot.php \Drupal\update\UpdateRoot::set()

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

Parameters

string $update_root: The update root.

File

core/modules/update/src/UpdateRoot.php, line 53

Class

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

Namespace

Drupal\update

Code

public function set(string $update_root) : void {
    $this->updateRoot = $update_root;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.