From 2cf2d8a99e98628fc15c6d96fe99f981a5c745b8 Mon Sep 17 00:00:00 2001 From: Volker Killesreiter Date: Wed, 28 Aug 2019 16:34:32 +0200 Subject: [PATCH] Issue #3077672 by volkerk, daniel.bosen: Fix field_group update --- config/update/thunder_update_8139.yml | 52 +++++++++++++++++++++++++++ thunder.install | 14 ++++++++ 2 files changed, 66 insertions(+) create mode 100644 config/update/thunder_update_8139.yml diff --git a/config/update/thunder_update_8139.yml b/config/update/thunder_update_8139.yml new file mode 100644 index 000000000..61866eede --- /dev/null +++ b/config/update/thunder_update_8139.yml @@ -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 diff --git a/thunder.install b/thunder.install index 8cfeb95aa..99eacc8f1 100644 --- a/thunder.install +++ b/thunder.install @@ -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(). */