Skip to content
Snippets Groups Projects
Unverified Commit 0de5331f authored by Seamus Lee's avatar Seamus Lee Committed by GitHub
Browse files

Merge pull request #17515 from seamuslee001/replace_legacy_rebuild_module_data

[REF] Replace the deprecated system_rebuild_module_data function with…
parents 9912d5b1 94529756
No related branches found
No related tags found
No related merge requests found
......@@ -537,7 +537,7 @@ class CRM_Utils_System_Drupal8 extends CRM_Utils_System_DrupalBase {
public function getModules() {
$modules = [];
$module_data = system_rebuild_module_data();
$module_data = \Drupal::service('extension.list.module')->reset()->getList();
foreach ($module_data as $module_name => $extension) {
if (!isset($extension->info['hidden']) && $extension->origin != 'core') {
$extension->schema_version = drupal_get_installed_schema_version($module_name);
......
......@@ -16,7 +16,7 @@ if (!defined('CIVI_SETUP')) {
}
\Civi\Setup::log()->info(sprintf('[%s] Flush CMS metadata', basename(__FILE__)));
system_rebuild_module_data();
\Drupal::service('extension.list.module')->reset();
\Drupal::service('module_installer')->install(['civicrm', 'civicrmtheme']);
drupal_flush_all_caches();
civicrm_install_set_drupal8_perms();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment