Skip to content

Commit

Permalink
fix: upgrade path
Browse files Browse the repository at this point in the history
  • Loading branch information
podarok committed Jan 26, 2022
1 parent 56521a7 commit 7c4a4cc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions openy_prgf/modules/openy_prgf_gallery/openy_prgf_gallery.install
Original file line number Diff line number Diff line change
Expand Up @@ -172,3 +172,15 @@ function openy_prgf_gallery_update_8010() {
'image.style.gallery_thumbnail'
]);
}

/**
* Apply Webp to all image styles.
*/
function openy_prgf_gallery_update_8012() {
$path = \Drupal::service('extension.list.module')->getPath('openy_prgf_gallery') . '/config/install';
$config_importer = \Drupal::service('config_import.importer');
$config_importer->setDirectory($path);
$config_importer->importConfigs([
'image.style.prgf_gallery'
]);
}

0 comments on commit 7c4a4cc

Please sign in to comment.