return $responsive_image_config_updater->
orderMultipliersNumerically($responsive_image_style);
});
}/**
* Add the image loading settings to responsive image field formatter instances.
*/
function responsive_image_post_update_image_loading_attribute(array &
$sandbox = NULL
): void
{ $responsive_image_config_updater = \Drupal::
classResolver(ResponsiveImageConfigUpdater::
class);
$responsive_image_config_updater->
setDeprecationsEnabled(FALSE
);
\Drupal::
classResolver(ConfigEntityUpdater::
class)->
update($sandbox, 'entity_view_display',
function DEntityViewDisplayInterface
$view_display) use ($responsive_image_config_updater): bool
{ return $responsive_image_config_updater->
processResponsiveImageField($view_display);
});
}