Skip to content

Commit

Permalink
Merge pull request #86 from aleevas/DS-1355
Browse files Browse the repository at this point in the history
feat: [DS-1355] Update configs after the Membership Calculator redesign
  • Loading branch information
podarok authored Jul 29, 2024
2 parents cfb1877 + a7264d1 commit 62d3237
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 58 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,68 +7,25 @@ dependencies:
- field.field.media.image.field_media_image
- field.field.media.image.field_media_in_library
- field.field.media.image.field_media_tags
- image.style.node_mbrshp_calc_preview
- media.type.image
module:
- blazy
- image
id: media.image.calc_preview
targetEntityType: media
bundle: image
mode: calc_preview
content:
field_media_image:
weight: 0
type: image
label: hidden
settings:
image_link: ''
image_style: node_mbrshp_calc_preview
thumbnail_style: ''
media_switch: ''
ratio: enforced
sizes: ''
breakpoints:
xs:
image_style: ''
width: ''
breakpoint: ''
sm:
image_style: ''
width: ''
breakpoint: ''
md:
image_style: ''
width: ''
breakpoint: ''
lg:
image_style: ''
width: ''
breakpoint: ''
xl:
image_style: ''
width: ''
breakpoint: ''
current_view_mode: calc_preview
background: false
caption:
title: '0'
alt: '0'
iframe_lazy: true
icon: ''
layout: ''
view_mode: ''
cache: 0
optionset: default
skin: ''
style: ''
box_caption: ''
box_caption_custom: ''
box_style: ''
box_media_style: ''
responsive_image_style: ''
grid: 0
grid_header: ''
grid_medium: 0
grid_small: 0
image_loading:
attribute: lazy
third_party_settings: { }
type: blazy
weight: 0
region: content
hidden:
created: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@ dependencies:
config:
- core.entity_view_mode.node.calc_summary
- field.field.node.branch.field_bottom_content
- field.field.node.branch.field_branch_holiday_hours
- field.field.node.branch.field_branch_hours
- field.field.node.branch.field_branch_menu_links
- field.field.node.branch.field_content
- field.field.node.branch.field_header_content
- field.field.node.branch.field_location_address
- field.field.node.branch.field_location_amenities
- field.field.node.branch.field_location_amenities_closed
- field.field.node.branch.field_location_area
- field.field.node.branch.field_location_coordinates
- field.field.node.branch.field_location_directions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,26 @@ dependencies:
- field.field.node.membership.field_mbrshp_info
- node.type.membership
module:
- text
- user
id: node.membership.calc_summary
targetEntityType: node
bundle: membership
mode: calc_summary
content:
field_mbrshp_image:
weight: 1
field_mbrshp_description:
type: text_default
label: hidden
settings:
view_mode: calc_summary
link: false
settings: { }
third_party_settings: { }
type: entity_reference_entity_view
weight: 1
region: content
links:
weight: 0
settings: { }
third_party_settings: { }
weight: 0
region: content
hidden:
field_mbrshp_description: true
field_mbrshp_image: true
field_mbrshp_info: true
langcode: true
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,18 @@ function openy_prgf_mbrshp_calc_update_8006() {
'image.style.node_mbrshp_calc_summary',
]);
}

/**
* Update membership calc feature configs after redesign.
*/
function openy_prgf_mbrshp_calc_update_10101() {
$config_dir = \Drupal::service('extension.list.module')->getPath('openy_prgf_mbrshp_calc') . '/config/install/';
// Import configuration.
$config_importer = \Drupal::service('openy_upgrade_tool.importer');
$config_importer->setDirectory($config_dir);
$config_importer->importConfigs([
'core.entity_view_display.media.image.calc_preview',
'core.entity_view_display.node.branch.calc_summary',
'core.entity_view_display.node.membership.calc_summary',
]);
}

0 comments on commit 62d3237

Please sign in to comment.