Hook Rebuild
Categories
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Downloads
Component created
Component changed
Component body
A Drupal 7 polyfill for the core hook_rebuild() added in Drupal 8
hook_rebuild() is called after a flush of all Drupal cache's allowing implementing modules to rebuild any required data structures using fresh data that is known to be pulled direct from it's data source.
The rebuild hook provided by this module is only invoked after the system has been completely cleared; i.e., all previously cached data is known to be gone and every API in the system is known to return current information, so your module can safely rely on all available data to rebuild its own.
Using this module
Simply leverage the rebuild hook.
<?php
/**
* @see hook_rebuild()
*/
function my_module_rebuild(){
//Rebuild my module data
}
Other contributed module developers
This module introduces a new Module type: Drupal 8 Polyfills
I would like to propose that any other Modules being developed to introduce functionality provided in Drupal 8 use this Module type also.
Security Advisory Coverage
This module is currently undergoing an application to be opted into the Security Advisory Coverage.
Once accepted and included this message will be removed.