Skip to content
Snippets Groups Projects

fix: Try to hack upgrade path issue

Open Andrii Podanenko requested to merge 1.4.x-hotfix into 1.4.x
1 file
+ 13
0
Compare changes
  • Side-by-side
  • Inline
+ 13
0
@@ -340,6 +340,19 @@ function ws_event_update_9018(&$sandbox) {
* Add content type to the Default sitemap in the Simple XML Sitemap config.
*/
function ws_event_update_9019(&$sandbox) {
$module_handler = \Drupal::moduleHandler();
if (!$module_handler->moduleExists('smart_date_recur')) {
\Drupal::service('module_installer')->install(['smart_date'], FALSE);
\Drupal::service('module_installer')->install(['smart_date_recur'], FALSE);
}
if (!$module_handler->moduleExists('addtocal_augment')) {
\Drupal::service('module_installer')->install(['date_augmenter'], FALSE);
\Drupal::service('module_installer')->install(['addtocal_augment'], FALSE);
}
if (!$module_handler->moduleExists('schema_event')) {
\Drupal::service('module_installer')->install(['schema_event'], FALSE);
}
$path = \Drupal::service('extension.list.module')->getPath('ws_event') . '/config/install';
/** @var \Drupal\config_import\ConfigImporterService $config_importer */
$config_importer = \Drupal::service('config_import.importer');
Loading