Skip to content
Snippets Groups Projects
Commit 73284cbc 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 906f8d4c
Branches
Tags
No related merge requests found
# Moved to optional
......@@ -5,13 +5,26 @@
* Contains install and update for Varbase Content Planner module.
*/
use Vardot\Installer\ModuleInstallerFactory;
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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment