From 5f3cdbdd774f7510c6a29cbc376ff0e8b2f233fb Mon Sep 17 00:00:00 2001 From: Rajab Natshah Date: Mon, 13 May 2024 22:46:08 +0300 Subject: [PATCH] Issue #3446946: Move managed configs for the Vartheme BS5 theme footer content blocks from Varbase Profile to Varbase Core module --- .../block.block.vartheme_bs5_copyright.yml | 24 ------------------- varbase.profile | 8 ------- 2 files changed, 32 deletions(-) delete mode 100644 config/managed/block.block.vartheme_bs5_copyright.yml diff --git a/config/managed/block.block.vartheme_bs5_copyright.yml b/config/managed/block.block.vartheme_bs5_copyright.yml deleted file mode 100644 index 74d59aa5..00000000 --- a/config/managed/block.block.vartheme_bs5_copyright.yml +++ /dev/null @@ -1,24 +0,0 @@ -langcode: en -status: true -dependencies: - content: - - "block_content:basic:b858d97d-eaa5-4cfe-af6f-b92c21bbca95" - module: - - block_content - theme: - - vartheme_bs5 -id: vartheme_bs5_copyright -theme: vartheme_bs5 -region: footer_top -weight: -5 -provider: null -plugin: "block_content:b858d97d-eaa5-4cfe-af6f-b92c21bbca95" -settings: - id: "block_content:b858d97d-eaa5-4cfe-af6f-b92c21bbca95" - label: Copyright - provider: block_content - label_display: "0" - status: true - info: "" - view_mode: full -visibility: {} diff --git a/varbase.profile b/varbase.profile index 63c7013f..9bf9d76c 100644 --- a/varbase.profile +++ b/varbase.profile @@ -575,14 +575,6 @@ function varbase_after_install_finished(array &$install_state) { $checkList->markAllUpdates(); } - // Import managed config to the active config at this time of install. - $profile_path_managed = \Drupal::service('extension.list.profile')->getPath('varbase') . '/config/managed/'; - $managed_config_path = $profile_path_managed . 'block.block.vartheme_bs5_copyright.yml'; - $managed_config_content = file_get_contents($managed_config_path); - $managed_config_data = (array) Yaml::parse($managed_config_content); - $managed_config_factory = \Drupal::configFactory()->getEditable('block.block.vartheme_bs5_copyright'); - $managed_config_factory->setData($managed_config_data)->save(TRUE); - // 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()