Skip to content

Commit

Permalink
OEL-2070: Make sure gallery view mode is imported when the paragraph …
Browse files Browse the repository at this point in the history
…module is already installed.
  • Loading branch information
brummbar committed Nov 7, 2022
1 parent f8efd6d commit 2efd63d
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ function _oe_whitelabel_paragraphs_install_config(): void {
'field.field.paragraph.oe_social_media_follow.field_oe_social_media_variant',
];

// Import the gallery paragraph view display override if the related
// module is already installed.
if (\Drupal::moduleHandler()->moduleExists('oe_paragraphs_gallery')) {
$configs[] = 'core.entity_view_display.paragraph.oe_gallery.default';
}

ConfigImporter::importMultiple('module', 'oe_whitelabel_paragraphs', '/config/overrides/', $configs);
}

Expand Down

0 comments on commit 2efd63d

Please sign in to comment.