public function UpdateChecklist::markUpdatesSuccessful 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::markUpdatesSuccessful()
Marks a list of updates as successful.
Parameters
array $module_updates: Array of update ids per module.
bool $checkListPoints: Indicates the corresponding checkbox should be checked.
Throws
\Drupal\Core\Entity\EntityStorageException
File
- modules/
update_helper_checklist/ src/ UpdateChecklist.php, line 95
Class
- UpdateChecklist
- Update checklist service.
Namespace
Drupal\update_helper_checklistCode
public function markUpdatesSuccessful(array $module_updates, $checkListPoints = TRUE) {
$update_ids = $this
->getFlatChecklistKeys($module_updates);
$this
->setSuccessfulByHook($update_ids, TRUE);
if ($checkListPoints) {
$this
->checkListPoints($update_ids);
}
}