Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1408 from miroslav-lee/OPENY-237
Browse files Browse the repository at this point in the history
[OPENY-237] Remove blazy for render icon
  • Loading branch information
podarok authored Dec 21, 2018
2 parents 7c779a0 + 88a86ff commit 678de64
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,55 +20,9 @@ content:
label: hidden
settings:
image_style: ''
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: icon
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_link: ''
third_party_settings: { }
type: blazy
type: image
region: content
hidden:
created: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,3 +255,25 @@ function openy_media_image_update_8009() {
}
}
}

/**
* Remove blazy for icons.
*/
function openy_media_image_update_8010() {
$config_dir = drupal_get_path('module', 'openy_media_image') . '/config/install/';
// Update multiple configurations.
$configs = [
'core.entity_view_display.media.image.icon' => [
'dependencies.module',
'content.field_media_image',
],
];

$config_updater = \Drupal::service('openy_upgrade_tool.param_updater');
foreach ($configs as $config_name => $params) {
$config = $config_dir . $config_name . '.yml';
foreach ($params as $param) {
$config_updater->update($config, $config_name, $param);
}
}
}

0 comments on commit 678de64

Please # to comment.