In Drupal 8 , what the usage and function for the .post_update.php?

I saw the file of docroot/core/modules/menu_link_content/menu_link_content.post_update.php in my project. But I can not figure out what the destination for this file. Could any one can explain for it?


The MODULE.post_update.php file contains the hook_post_update_NAME functions. The purpose of these hook functions is to update data, such as entities. These updates are executed after all hook_update_N() implementations, which are executed when you run /update.php


Leave a Reply

Your email address will not be published. Required fields are marked *