varbase_faqs-9.0.x-dev/includes/updates/v9.inc
includes/updates/v9.inc
<?php
/**
* @file
* Contains varbase_faqs_update_9###(s) hook updates.
*/
use Vardot\Installer\ModuleInstallerFactory;
/**
* Issue #3272287: Switch to use the Module Installer Factory.
*
* In the Varbase FAQs module.
*/
function varbase_faqs_update_90001() {
// Set the weight of the module after installation of list of modules.
// To make sure that any hook or event subscriber workers after all used modules.
ModuleInstallerFactory::setModuleWeightAfterInstallation('varbase_faqs');
}
/**
* Issue #3419067: Remove (Deprecated) Rabbit Hole nodes module.
*
* And changed refactored config schema.
*/
function varbase_faqs_update_90002() {
$varbase_faqs_config = [
'rabbit_hole.behavior_settings.node.faq',
];
ModuleInstallerFactory::importConfigsFromList('varbase_faqs', $varbase_faqs_config, 'config/optional');
}
