media_contextual_crop_preprocess_responsive_image ignores $variables['sources'] if they are set

Created on 9 February 2024, about 1 year ago
Updated 12 February 2024, about 1 year ago

Problem/Motivation

The context of this issue is Drupal 10.2.3 running on PHP 8.2

We are using a core responsive image style with a theme defined breakpoint group, and one image style per breakpoint, and fallback image style. This image style is rendered with the core Responsive image formatter.

In Drupal 10.2 this formatter stores the src-set images in an array called $sources, and these are not replaced in media_contextual_crop_preprocess_responsive_image method.

Proposed resolution

See fork with MR

User interface changes

None

API changes

None

Data model changes

None

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇳🇱Netherlands rené bakx Netherlands

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024