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.
Follow-up to #2612590: Allow configuring in the UI the image formats supported by the toolkit
Problem/Motivation
Remove the Todo2311679 class when Drupal core issue #2311679: Separate MIME type mapping from ExtensionMimeTypeGuesser, or similar, is solved.
Proposed resolution
Replace the Todo2311679 class with a mapper class that uses Reflection to access the $mapping property of ExtensionMimeTypeGuesser.
Remaining tasks
User interface changes
none
API changes
Replace the Todo2311679 class with a ImagemagickMimeTypeMapper class.
Data model changes
none
Comment | File | Size | Author |
---|---|---|---|
#3 | 2620930-3.patch | 7.8 KB | mondrake |
Comments
Comment #2
mondrake#2311679: Separate MIME type mapping from ExtensionMimeTypeGuesser is completely stalled. For D8, I will use Reflection to access the $mapping property of ExtensionMimeTypeGuesser after it has loaded additional MIME types via
hook_file_mimetype_mapping_alter
.Comment #3
mondrakePatch.
Comment #5
mondrakeCommitted to 8.x-2.x; leaving open for porting to 8.x-1.x
Comment #6
mondrakeComment #7
mondrakeBackport is unlikely at this stage.