Invokes a bootstrap hook in all bootstrap modules that implement it.
$hook: The name of the bootstrap hook to invoke.
function bootstrap_invoke_all($hook) {
$module_handler = Drupal::moduleHandler();
foreach ($module_handler
->getBootstrapModules() as $module) {
$module_handler
->load($module);
module_invoke($module, $hook);
}
}