- Issue created by @aubjr_drupal
API page: https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Extension...
Problem: The API page above doesn't say anything about hook_post_update_NAME() hooks not running at installation time. Can someone please add that very important fact to the API?
Maybe something like this?
"β οΈ π Unlike hook_install() or hook_update_N(), post update hooks are not executed at module install.
"Also, any post_update hooks that exist in a module's *.post_update.php file at the time of installation will be added to an internal "already executed" list (in configuration) - making them look like they've been executed properly but were instead skipped outright.
"For 'do-these-tasks-at-time-of-install' tasks, use hook_install() instead."
(Sidenote: An older version of the page at https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Extension... had at least some information on it, but this 11.x page is oddly devoid of any notes.)
Active
11.0 π₯
documentation
A documentation change is requested elsewhere. For Drupal core (and possibly other projects), once the change has been committed, this status should be recorded in a change record node.