You are here

public function UpdateChecklist::markUpdatesFailed in Update helper 8

Same name and namespace in other branches
  1. 2.x modules/update_helper_checklist/src/UpdateChecklist.php \Drupal\update_helper_checklist\UpdateChecklist::markUpdatesFailed()

Marks a list of updates as failed.

Parameters

array $module_updates: Array of update ids per module.

Throws

\Drupal\Core\Entity\EntityStorageException

File

modules/update_helper_checklist/src/UpdateChecklist.php, line 113

Class

UpdateChecklist
Update checklist service.

Namespace

Drupal\update_helper_checklist

Code

public function markUpdatesFailed(array $module_updates) {
  $update_ids = $this
    ->getFlatChecklistKeys($module_updates);
  $this
    ->setSuccessfulByHook($update_ids, FALSE);
}