You are here

function hook_removed_post_updates in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Extension/module.api.php \hook_removed_post_updates()
  2. 9 core/lib/Drupal/Core/Extension/module.api.php \hook_removed_post_updates()

Return an array of removed hook_post_update_NAME() function names.

This should be used to indicate post-update functions that have existed in some previous version of the module, but are no longer available.

This implementation has to be placed in a MODULE.post_update.php file.

Return value

string[] An array where the keys are removed post-update function names, and the values are the first stable version in which the update was removed.

See also

hook_post_update_NAME()

Related topics

38 functions implement hook_removed_post_updates()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

action_removed_post_updates in core/modules/action/action.post_update.php
Implements hook_removed_post_updates().
block_content_removed_post_updates in core/modules/block_content/block_content.post_update.php
Implements hook_removed_post_updates().
block_removed_post_updates in core/modules/block/block.post_update.php
Implements hook_removed_post_updates().
ckeditor5_removed_post_updates in core/modules/ckeditor5/ckeditor5.post_update.php
Implements hook_removed_post_updates().
ckeditor_removed_post_updates in core/modules/ckeditor/ckeditor.post_update.php
Implements hook_removed_post_updates().

... See full list

File

core/lib/Drupal/Core/Extension/module.api.php, line 781
Hooks related to module and update systems.

Code

function hook_removed_post_updates() {
  return [
    'mymodule_post_update_foo' => '8.x-2.0',
    'mymodule_post_update_bar' => '8.x-3.0',
    'mymodule_post_update_baz' => '8.x-3.0',
  ];
}