Skip to content

Commit

Permalink
Issue #3446946: Move managed configs for the Vartheme BS5 theme foote…
Browse files Browse the repository at this point in the history
…r content blocks from Varbase Profile to Varbase Core module
  • Loading branch information
Natshah committed May 13, 2024
1 parent 12e57b4 commit 5f3cdbd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 32 deletions.
24 changes: 0 additions & 24 deletions config/managed/block.block.vartheme_bs5_copyright.yml

This file was deleted.

8 changes: 0 additions & 8 deletions varbase.profile
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 5f3cdbd

Please sign in to comment.