Commit c63a24f5 authored by Rajab Natshah's avatar Rajab Natshah
Browse files

Issue #3270834: Switch to use the Module Installer Factory in the Varbase Core module

parent 16a55ae5
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -279,3 +279,14 @@ function varbase_admin_update_8605() {
  }

}

/**
 * Issue #3270834: Switch to use the Module Installer Factory.
 *
 * In the Varbase Admin module.
 */
function varbase_admin_update_90001() {
  // Set the weight of the module after installation of list of modules.
  // To make sure that any hook or event subscriber workes after all used modules.
  ModuleInstallerFactory::setModuleWeightAfterInstallation('varbase_admin');
}
+11 −0
Original line number Diff line number Diff line
@@ -38,3 +38,14 @@ function varbase_internationalization_update_86001() {
    \Drupal::service('module_installer')->uninstall(['l10n_client_ui'], FALSE);
  }
}

/**
 * Issue #3270834: Switch to use the Module Installer Factory.
 *
 * In the Varbase Internationalization module.
 */
function varbase_internationalization_update_90001() {
  // Set the weight of the module after installation of list of modules.
  // To make sure that any hook or event subscriber workes after all used modules.
  ModuleInstallerFactory::setModuleWeightAfterInstallation('varbase_internationalization');
}
+11 −0
Original line number Diff line number Diff line
@@ -28,3 +28,14 @@ function varbase_page_install() {
    ->applyUpdates();

}

/**
 * Issue #3270834: Switch to use the Module Installer Factory.
 *
 * In the Varbase Page module.
 */
function varbase_page_update_90001() {
  // Set the weight of the module after installation of list of modules.
  // To make sure that any hook or event subscriber workes after all used modules.
  ModuleInstallerFactory::setModuleWeightAfterInstallation('varbase_page');
}
+4 −11
Original line number Diff line number Diff line
@@ -125,19 +125,12 @@ function varbase_security_update_9004() {
/**
 * Issue #3256029: Fix Revise password policy and password suggestions message.
 *
 * Change varbase security weight and make it after all modules installed by it.
 * Change Varbase Security weight and make it after all modules installed by it.
 */
function varbase_security_update_90004() {

  $module_path = Drupal::service('module_handler')->getModule('varbase_security')->getPath();
  $module_info_file = $module_path . '/varbase_security.info.yml';
  if (file_exists($module_info_file)) {
    $module_info_data = (array) Yaml::parse(file_get_contents($module_info_file));
    if (isset($module_info_data['install'])
      && is_array($module_info_data['install'])) {
  // Set the weight of the module after installation of list of modules.
  // To make sure that any hook or event subscriber workes after all used modules.
  ModuleInstallerFactory::setModuleWeightAfterInstallation('varbase_security');
    }
  }

  /** @var \Drupal\update_helper\Updater $updateHelper */
  $updateHelper = \Drupal::service('update_helper.updater');
+1 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@ name: "Varbase Webform"
description: "Provide webforms features and settings."
type: module
package: Varbase
core_version_requirement: ^8 || ^9
core_version_requirement: ^9
dependencies:
  - webform:webform
install:
Loading