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
#2807785: Move global constants from *.module files into interfaces deprecated a bunch of constants but it did not actually replace their usage. We should do this. This issue handles RESPONSIVE_IMAGE_EMPTY_IMAGE
and RESPONSIVE_IMAGE_ORIGINAL_IMAGE
. This is a bug because we've deprecated something but we've not completed the task.
Proposed resolution
Use ResponsiveImageStyleInterface::EMPTY_IMAGE
and ResponsiveImageStyleInterface::ORIGINAL_IMAGE
instead.
Remaining tasks
User interface changes
None
API changes
None
Data model changes
None
Comment | File | Size | Author |
---|---|---|---|
#3 | 3015708-3.patch | 6.75 KB | alexpott |
#3 | 2-3-interdiff.txt | 826 bytes | alexpott |
#2 | 3015708-2.patch | 7.29 KB | alexpott |
Comments
Comment #2
alexpottSo after applying the patch the only instances found are the expected ones.
Comment #3
alexpottArgghhh... we load the module before updating the classloader so we can't use the interface constant in the main section of the .module file.
Comment #4
volegerAll constant calls replaced. +1 for RTBC
Comment #5
catchCommitted d7497b0 and pushed to 8.7.x. Thanks!