Issue #2560597 followup by webchick, hass: Mark Migrate* modules as Experimental

8.0.x
Alex Pott 2015-09-10 20:40:41 +01:00
parent 3444108ad6
commit 72ed2725cd
1 changed files with 4 additions and 3 deletions

View File

@ -53,10 +53,11 @@ function system_requirements($phase) {
// Warn if any experimental modules are installed.
$experimental = array();
$enabled_modules = system_rebuild_module_data();
$enabled_modules = \Drupal::moduleHandler()->getModuleList();
foreach ($enabled_modules as $module => $data) {
if ($data->info['package'] === 'Core (Experimental)') {
$experimental[$module] = $data->info['name'];
$info = system_get_info('module', $module);
if ($info['package'] === 'Core (Experimental)') {
$experimental[$module] = $info['name'];
}
}
if (!empty($experimental)) {