function UpdateReady::__construct

Same name in other branches
  1. 9 core/modules/update/src/Form/UpdateReady.php \Drupal\update\Form\UpdateReady::__construct()
  2. 8.9.x core/modules/update/src/Form/UpdateReady.php \Drupal\update\Form\UpdateReady::__construct()
  3. 11.x core/modules/update/src/Form/UpdateReady.php \Drupal\update\Form\UpdateReady::__construct()

Constructs a new UpdateReady object.

Parameters

string $root: The root location under which updated projects will be saved.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The object that manages installed modules in a Drupal installation.

\Drupal\Core\State\StateInterface $state: The state key value store.

string $site_path: The site path.

File

core/modules/update/src/Form/UpdateReady.php, line 61

Class

UpdateReady
Configure update settings for this site.

Namespace

Drupal\update\Form

Code

public function __construct($root, ModuleHandlerInterface $module_handler, StateInterface $state, $site_path) {
    $this->root = $root;
    $this->moduleHandler = $module_handler;
    $this->state = $state;
    $this->sitePath = $site_path;
}

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