public function ProjectCollector::__construct in Upgrade Status 8.3
Same name and namespace in other branches
- 8 src/ProjectCollector.php \Drupal\upgrade_status\ProjectCollector::__construct()
- 8.2 src/ProjectCollector.php \Drupal\upgrade_status\ProjectCollector::__construct()
Constructs a \Drupal\upgrade_status\ProjectCollector.
Parameters
\Drupal\Core\Extension\ModuleExtensionList $module_extension_list: The module extension list service.
\Drupal\Core\Extension\ThemeExtensionList $theme_extension_list: The theme extension handler service.
\Drupal\Core\Extension\ProfileExtensionList $profile_extension_list: The profile extension handler service.
\Drupal\Core\KeyValueStore\KeyValueExpirableFactory $key_value_expirable: The expirable key/value storage.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.
File
- src/
ProjectCollector.php, line 151
Class
- ProjectCollector
- Collects projects and their associated metadata collated for Upgrade Status.
Namespace
Drupal\upgrade_statusCode
public function __construct(ModuleExtensionList $module_extension_list, ThemeExtensionList $theme_extension_list, ProfileExtensionList $profile_extension_list, KeyValueExpirableFactory $key_value_expirable, ConfigFactoryInterface $config_factory) {
$this->moduleExtensionList = $module_extension_list;
$this->themeExtensionList = $theme_extension_list;
$this->profileExtensionList = $profile_extension_list;
$this->availableUpdates = $key_value_expirable
->get('update_available_releases');
$this->configFactory = $config_factory;
}