Needs review
Project:
Color backport
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
19 May 2026 at 00:55 UTC
Updated:
23 May 2026 at 20:35 UTC
Jump to comment: Most recent
Per drupal.org/project/drupal/issues/3302988, CssOptimizer->loadFile() will become a protected function.
This Class is instantiated in color.module and loadFile() is called there.
Use dependency injection to call loadFile from the color module, or write the color module's own loadFile function.
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
znak commentedComment #6
znak commentedI updated the code in the module file to use services in the correct way. Please, check the PR
Comment #7
mdranove commentedHmm Im not sure I understand, there are a lot of changes in the MR that are not related to the issue?
I think the MR should just be changing this line
$css_optimizer = new CssOptimizer(\Drupal::service('file_url_generator'));Unless I'm missing something.
Comment #8
mdranove commentedComment #10
mdranove commented