function UpdateController::__construct

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

Constructs update status data.

Parameters

\Drupal\update\UpdateManagerInterface $update_manager: Update Manager Service.

File

core/modules/update/src/Controller/UpdateController.php, line 27

Class

UpdateController
Controller routines for update routes.

Namespace

Drupal\update\Controller

Code

public function __construct(UpdateManagerInterface $update_manager) {
    $this->updateManager = $update_manager;
}

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