public function UpgradeStatusForm::__construct in Upgrade Status 8
Same name and namespace in other branches
- 8.3 src/Form/UpgradeStatusForm.php \Drupal\upgrade_status\Form\UpgradeStatusForm::__construct()
- 8.2 src/Form/UpgradeStatusForm.php \Drupal\upgrade_status\Form\UpgradeStatusForm::__construct()
Constructs a Drupal\upgrade_status\Form\UpgradeStatusForm.
Parameters
\Drupal\upgrade_status\ProjectCollector $project_collector: The project collector service.
\Drupal\Core\KeyValueStore\KeyValueExpirableFactory $key_value_expirable: The expirable key/value storage.
\Drupal\upgrade_status\ScanResultFormatter $result_formatter: The scan result formatter service.
\Drupal\Core\Render\RendererInterface $renderer: The renderer service.
File
- src/
Form/ UpgradeStatusForm.php, line 74
Class
Namespace
Drupal\upgrade_status\FormCode
public function __construct(ProjectCollector $project_collector, KeyValueExpirableFactory $key_value_expirable, ScanResultFormatter $result_formatter, RendererInterface $renderer) {
$this->projectCollector = $project_collector;
$this->releaseStore = $key_value_expirable
->get('update_available_releases');
$this->resultFormatter = $result_formatter;
$this->renderer = $renderer;
}