You are here

function update_helper_checklist_install in Update helper 8

Same name and namespace in other branches
  1. 2.x modules/update_helper_checklist/update_helper_checklist.install \update_helper_checklist_install()

Installation hoot for update helper checklist module.

File

modules/update_helper_checklist/update_helper_checklist.install, line 11
Install and update hooks for update_helper_checklist module.

Code

function update_helper_checklist_install() {

  /** @var \Drupal\update_helper_checklist\UpdateChecklist $checkList */
  $checkList = \Drupal::service('update_helper_checklist.update_checklist');

  // Mark all updates as successful on install.
  // TODO: Improve - Get information from executed update hooks, what to mark.
  $checkList
    ->markAllUpdates();
}