function UpdateManagerInstall::__construct

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

Constructs a new UpdateManagerInstall.

Parameters

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

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

string $site_path: The site path.

\Drupal\Core\Archiver\ArchiverManager $archiver_manager: The archiver plugin manager service.

File

core/modules/update/src/Form/UpdateManagerInstall.php, line 62

Class

UpdateManagerInstall
Configure update settings for this site.

Namespace

Drupal\update\Form

Code

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

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