public function UpdateReady::__construct in Automatic Updates 8.2
Constructs a new UpdateReady object.
Parameters
\Drupal\automatic_updates\Updater $updater: The updater service.
\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.
\Drupal\Core\State\StateInterface $state: The state service.
File
- src/
Form/ UpdateReady.php, line 46
Class
- UpdateReady
- Defines a form to commit staged updates.
Namespace
Drupal\automatic_updates\FormCode
public function __construct(Updater $updater, MessengerInterface $messenger, StateInterface $state) {
$this->updater = $updater;
$this
->setMessenger($messenger);
$this->state = $state;
}