function hook_removed_post_updates

Same name in other branches
  1. 9 core/lib/Drupal/Core/Extension/module.api.php \hook_removed_post_updates()
  2. 8.9.x core/lib/Drupal/Core/Extension/module.api.php \hook_removed_post_updates()
  3. 11.x 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

36 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().
comment_removed_post_updates in core/modules/comment/comment.post_update.php
Implements hook_removed_post_updates().

... See full list

File

core/lib/Drupal/Core/Extension/module.api.php, line 905

Code

function hook_removed_post_updates() {
    return [
        'my_module_post_update_foo' => '8.x-2.0',
        'my_module_post_update_bar' => '8.x-3.0',
        'my_module_post_update_baz' => '8.x-3.0',
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.