UpdateRegistry::getPendingUpdateFunctions()次のコードが含まれています。コメントの内容をご覧ください。
  // First figure out which hook_{$this->updateType}_NAME got executed
  // already.
  $existing_update_functions = $this->keyValue->get('existing_updates', []);
UpdateRegistry :: $ updateTypeはに設定され'post_update'ます。はの値で
$this->keyValue設定されUpdateRegistryFactory::create()ます$this->container->get('keyvalue')->get('post_update')。
そのキー値コレクションを取得するための同等の手続き型コードは次のコードです。
$key_value = \Drupal::keyValue('post_update');
existing_updatesを空の配列に設定すると、Drupalは更新後のコールバックが呼び出されていないと見なします。
$key_value = \Drupal::keyValue('post_update');
$key_value->set('existing_updates', []);
そのキー値のexisting_updatesキーからコールバック名を削除すると、Drupalは更新後のコールバックがまだ呼び出されていないと見なします。