You are here

public function UpdateManagerInstall::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/update/src/Form/UpdateManagerInstall.php \Drupal\update\Form\UpdateManagerInstall::__construct()
  2. 10 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;
}