Skip to content
This repository has been archived by the owner on Jun 22, 2020. It is now read-only.

Commit

Permalink
Issue #3077672 by volkerk, daniel.bosen: Fix field_group update
Browse files Browse the repository at this point in the history
  • Loading branch information
ol0lll authored and dbosen committed Aug 28, 2019
1 parent 9b6db1d commit 2cf2d8a
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
52 changes: 52 additions & 0 deletions config/update/thunder_update_8139.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
core.entity_form_display.media.gallery.default:
expected_config: { }
update_actions:
add:
third_party_settings:
field_group:
group_basis:
region: content
core.entity_form_display.media.image.default:
expected_config: { }
update_actions:
add:
third_party_settings:
field_group:
group_basis:
region: content
group_credits:
region: content
core.entity_form_display.media.instagram.default:
expected_config: { }
update_actions:
add:
third_party_settings:
field_group:
group_basis:
region: content
core.entity_form_display.media.pinterest.default:
expected_config: { }
update_actions:
add:
third_party_settings:
field_group:
group_basis:
region: content
core.entity_form_display.media.twitter.default:
expected_config: { }
update_actions:
add:
third_party_settings:
field_group:
group_basis:
region: content
core.entity_form_display.media.video.default:
expected_config: { }
update_actions:
add:
third_party_settings:
field_group:
group_basis:
region: content
group_credits:
region: content
14 changes: 14 additions & 0 deletions thunder.install
Original file line number Diff line number Diff line change
Expand Up @@ -1182,6 +1182,20 @@ function thunder_update_8137() {
function thunder_update_8138() {
}

/**
* Add missing region key to field groups in form display settings.
*/
function thunder_update_8139() {
/** @var \Drupal\update_helper\Updater $updateHelper */
$updateHelper = \Drupal::service('update_helper.updater');

// Execute configuration update definitions with logging of success.
$updateHelper->executeUpdate('thunder', 'thunder_update_8139');

// Output logged messages to related channel of update execution.
return $updateHelper->logger()->output();
}

/**
* Implements hook_requirements().
*/
Expand Down

0 comments on commit 2cf2d8a

Please sign in to comment.