protected function UpdateChecklist::getFlatChecklistKeys in Update helper 8
Same name and namespace in other branches
- 2.x 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;
}