Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
When a theme is disabled its breakpoint.breakpoint_group.theme.%themename.yml configuration file, if it has one, is removed from the active configurations, but its corresponding picture.mappings.%themename.yml, if it has one, is not.
Proposed resolution
Decide if this expected behavior.
Remaining tasks
If this is expected, provide documentation.
If not, provide a patch.
Comments
Comment #1
attiks CreditAttribution: attiks commentedFYI: picture is renamed to responsive_image, see #2124377-74: Rename "Picture" module to "Responsive Image" module
Comment #2
dcrocks CreditAttribution: dcrocks commentedI'll update once that patch is committed. I haven't got any feedback on this yet. Since any 'responsive_image' file can be used by any theme, I'm not sure if this isn't 'as designed'.
Comment #3
Eli-TComment #4
dcrocks CreditAttribution: dcrocks commentedComment #5
dcrocks CreditAttribution: dcrocks commentedSorry, typo.
Comment #6
dcrocks CreditAttribution: dcrocks commentedIt appears that the responsive_image form ui omits a 'delete' functionality, even though 'ResponsiveImageMappingDeleteForm.php' exists. The test in 'ResponsiveImageAdminUiTest.php' doesn't actually delete the temporary mapping, and there is no test to see if it did so successfully. It appears that the implementation of the delete functionality wasn't completed. Was this intentional?
Comment #7
attiks CreditAttribution: attiks commentedIt was not intentional, so it should be added. I think the easiest is to do it as part of #2260061: Responsive image module does not support sizes/picture polyfill 2.2 or at least wait till that gets committed.
Comment #8
dcrocks CreditAttribution: dcrocks commentedProbably better to keep it here. Right now mappings can be used by any theme thru the UI. Maybe that shouldn't be so.
Comment #9
attiks CreditAttribution: attiks commentedThis is part of the latest patch in #2260061: Responsive image module does not support sizes/picture polyfill 2.2