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

Issue #3351731: Fix Configuration objects (content_calendar.settings) provided...

Issue #3351731: Fix Configuration objects (content_calendar.settings) provided by varbase_content_planner already exist in active configuration
parent aa1f4962
No related branches found
No related tags found
No related merge requests found
# Moved to optional
<?php
/**
* @file
* Contains install and update for Varbase Content Planner module.
*/
use Vardot\Entity\EntityDefinitionUpdateManager;
use Vardot\Installer\ModuleInstallerFactory;
/**
* Implements hook_install().
*/
function varbase_content_planner_install() {
// Processor for install: in varbase_content_planner.info.yml file.
ModuleInstallerFactory::installList('varbase_content_planner');
// Install optional configs.
ModuleInstallerFactory::importConfigsFromScanedDirectory('varbase_content_planner', '/^.*(settings.yml)$/i');
// 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(EntityDefinitionUpdateManager::class)
->applyUpdates();
// Add permissions.
ModuleInstallerFactory::addPermissions('varbase_content_planner');
}
......@@ -13,8 +13,7 @@ use Vardot\Installer\ModuleInstallerFactory;
*/
function varbase_workflow_install() {
// Processer for install: in varbase_workflow.info.yml file using ModuleInstallerFactory.
// ---------------------------------------------------------------------------.
// Processor for install: in varbase_workflow.info.yml file.
ModuleInstallerFactory::installList('varbase_workflow');
// Install optional configs.
......@@ -56,6 +55,6 @@ function varbase_workflow_update_82001() {
*/
function varbase_workflow_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.
// To make sure that any hook or event subscriber workers after all used modules.
ModuleInstallerFactory::setModuleWeightAfterInstallation('varbase_workflow');
}
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