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.
Clean-up code base to conform core standards
#2824322: Add ability set labels for languages in dropdown within ticket are some DI related fixes. extract them and get onto dev line.
Comment | File | Size | Author |
---|---|---|---|
#15 | 2889674-15.patch | 2.51 KB | andypost |
#15 | interdiff.txt | 372 bytes | andypost |
Comments
Comment #3
SKAUGHTnow, currently on dev line.
Comment #7
SKAUGHTComment #9
SKAUGHTComment #10
andypostHere's a general set of fixes for the module
While checking this I fixed
- added config schema for settings
- fixed DI for block
- used proper "inline_template" for added help text
Needs follow-up issues
- add cache dependency on module's config to block ad get rid of render cache invalidation
- simplify settings form (I guess global settings should be moved to block level)
Comment #12
SKAUGHT#10 commited. thanks very much!
re: follow ups.
cache: myself, i'm still not familiar enough with the cache system to handle it better.
settings form: i myself was thinking about whether or not moving it to block level would be appropriate.. as it is a 'global' control vs each instance. This should be it's own issue, rather than on this cleanup ticket.
Comment #13
SKAUGHThave opened #2889957: Dropdown language block caching issues
Comment #14
andypostthanks for quick reply!
One more thing - wrapper actually is boolean, so better to convert this setting to checkbox
Filed follow-up for settings form #2890099: Refactor settings form
Comment #15
andypostFix caching like core does
Comment #16
andypostLooks after this it makes sense to create new release
schema change to boolean may need update hook for existing sites but testing shows that config is smart enough
Comment #17
SKAUGHTam returning title and closing. this aspect of 'code cleanup' has been addressed.
Comment #18
SKAUGHTComment #19
andypostIssues in "Fixed" state are automatically closed in 2 weeks but visible in tracker (useful to see latest fixed)