protected function UpdateChecklist::getFlatChecklistKeys in Update helper 2.x
Same name and namespace in other branches
- 8 modules/update_helper_checklist/src/UpdateChecklist.php \Drupal\update_helper_checklist\UpdateChecklist::getFlatChecklistKeys()
Get flat list of checklist keys for module updates.
Parameters
array $module_update_list: Keys for update entries per module.
Return value
array Returns flattened array of checklist update entries.
2 calls to UpdateChecklist::getFlatChecklistKeys()
- UpdateChecklist::markUpdatesFailed in modules/
update_helper_checklist/ src/ UpdateChecklist.php - Marks a list of updates as failed.
- UpdateChecklist::markUpdatesSuccessful in modules/
update_helper_checklist/ src/ UpdateChecklist.php - Marks a list of updates as successful.
File
- modules/
update_helper_checklist/ src/ UpdateChecklist.php, line 177
Class
- UpdateChecklist
- Update checklist service.
Namespace
Drupal\update_helper_checklistCode
protected function getFlatChecklistKeys(array $module_update_list) {
$flatKeys = [];
foreach ($module_update_list as $module_name => $updates) {
foreach ($updates as $update) {
$flatKeys[] = str_replace('.', '_', $module_name . ':' . $update);
}
}
return $flatKeys;
}