Skip to content

Commit

Permalink
Merge pull request #108 from openeuropa/EWPP-2009
Browse files Browse the repository at this point in the history
EWPP-2009: Add default config hash for post_update helper method.
  • Loading branch information
22Alexandra authored Mar 2, 2022
2 parents c74b187 + a9500b5 commit c887d2d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"require-dev": {
"behat/behat": "^3.10",
"composer/installers": "^1.11",
"composer/xdebug-handler": "^2.0",
"drupal/core-composer-scaffold": "^9.2",
"drupal/core-dev": "^9.2",
"drupal/config_devel": "^1.2",
Expand All @@ -25,13 +26,14 @@
"openeuropa/code-review": "^2.0",
"openeuropa/task-runner-drupal-project-symlink": "^1.0-beta5",
"openeuropa/oe_multilingual": "^1.10",
"phpspec/prophecy-phpunit": "^1 || ^2"
"phpspec/prophecy-phpunit": "^2"
},
"_readme": [
"Explicit lower version requirement of ctools due to Drupal core 9.2 compatibility.",
"Explicit requirement for egulias/email-validator due to https://www.drupal.org/project/drupal/issues/3061074#comment-14300579. It can be removed when Drupal core 9.2 support is droppped.",
"Explicit requirement of token module due to PHP7.4 compatbility.",
"Explicit requirement of behat module due to PHP8 compatibility."
"Explicit requirement of behat module due to PHP8 compatibility.",
"Requiring composer/xdebug-handler until PHPMD 2.12 is released"
],
"scripts": {
"post-install-cmd": "./vendor/bin/run drupal:site-setup",
Expand Down
1 change: 1 addition & 0 deletions oe_corporate_blocks.post_update.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ function _oe_corporate_blocks_import_corporate_links(string $config_path): void

foreach ($configs as $config) {
if ($data = $source->read($config)) {
$data['_core']['default_config_hash'] = Crypt::hashBase64(serialize($data));
$config_storage->write($config, $data);
}
}
Expand Down

0 comments on commit c887d2d

Please sign in to comment.