_filter_html_image_secure_process() ensures that images are in fact on-site images. However, FileUrlGenerator::transformRelative() does not know that images are simultaneously on www.drupal.org & new.drupal.org.
Issue fork drupalorg-3558007
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
drummComment #5
fjgarlin commentedSo, the code currently is not D11 compatible, but new.d.o is still on D10, for which this code is valid.
I don't think we can do the D11-hook implementation on D10, so probably what's needed now is to add the exception to phpstan and probably create a "postponed" task for when we fully move the site to D11.
We could detect the Drupal version and do one or the other depending on it, tho that'll mean extra work now.
NW so we can at least answer those questions.
Comment #6
drummWe’ll have to stick with the D10 implementation now, and do what we can to keep track of what we need to think about when we have a chance to upgrade: #3558359: Upgrade to D11
I think I gave this enough testing to get it deployed.
Comment #8
drummThis is deployed and working.