function hook_removed_post_updates in Drupal 9
Same name and namespace in other branches
- 8 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
Related topics
30 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.
- 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().
- comment_removed_post_updates in core/
modules/ comment/ comment.post_update.php - Implements hook_removed_post_updates().
- contact_removed_post_updates in core/
modules/ contact/ contact.post_update.php - Implements hook_removed_post_updates().
- content_moderation_removed_post_updates in core/
modules/ content_moderation/ content_moderation.post_update.php - Implements hook_removed_post_updates().
File
- core/
lib/ Drupal/ Core/ Extension/ module.api.php, line 780 - 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',
];
}