Skip to content
Snippets Groups Projects
Commit b6151831 authored by Rajab Natshah's avatar Rajab Natshah
Browse files

Issue #3102065: Add a necessary initialization for the entire system to...

Issue #3102065: Add a necessary initialization for the entire system to account for changed config by the end of the installation
parent 499ea646
No related branches found
No related tags found
No related merge requests found
......@@ -458,6 +458,26 @@ function varbase_after_install_finished(array &$install_state) {
$config_factory->setData($config_data)->save(TRUE);
}
// Entity updates to clear up any mismatched entity and/or field definitions
// And Fix changes were detected in the entity type and field definitions.
\Drupal::classResolver()
->getInstanceFromDefinition(VarbaseEntityDefinitionUpdateManager::class)
->applyUpdates();
// Full flash and clear cash and rebuilding newly created routes.
// After install of extra modules by install: in the .info.yml files.
// In Varbase profile and all Varbase components.
// ---------------------------------------------------------------------------
// * Necessary inlitilization for the entire system.
// * Account for changed config by the end install.
// * Flush all persistent caches.
// * Flush asset file caches.
// * Wipe the Twig PHP Storage cache.
// * Rebuild module and theme data.
// * Clear all plugin caches.
// * Rebuild the menu router based on all rebuilt data.
drupal_flush_all_caches();
global $base_url;
// After install direction.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment