Part of #3566536: [meta] eliminate core .module files
Problem/Motivation
See #3566536: [meta] eliminate core .module files
Proposed resolution
Deprecate the automated_cron_settings_submit() function
Remaining tasks
None.
User interface changes
None.
Introduced terminology
None.
API changes
automated_cron_settings_submit() is deprecated
Data model changes
None.
Release notes snippet
Issue fork drupal-3566768
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:
- 3566768-deprecate-automated_cron.module
changes, plain diff MR !14287
Comments
Comment #2
claudiu.cristeaComment #3
claudiu.cristeaComment #5
claudiu.cristeaComment #6
claudiu.cristeaComment #7
nicxvan commentedLet's update this to use the new pattern in https://www.drupal.org/node/3548821
Comment #8
claudiu.cristeaChanged. Let's see the bot
Comment #9
longwaveCan this just use #config_target?
https://www.drupal.org/node/3373502
Comment #10
claudiu.cristeaI have tried but it's tricky because the base form (form that we're altering) is not a Config form
Comment #11
nicxvan commentedI think since we have a shared cr we probably want the text in the remaining tasks worth a link since once that is published we need to wait for each issue to be merged to add the details.
I think since it doesn't extend config form base we don't want to use config target right?
Comment #12
claudiu.cristeaNot sure I understand how to proceed
Comment #13
claudiu.cristeaOK, applied the approach discussed on Slack
Comment #14
claudiu.cristeaWhat else is needed here?
Comment #15
nicxvan commentedI think it's ready, I had just wanted to give @longwave a couple of days to respond to 10.
Comment #18
alexpottI think we should use #config_target here - to do this we need to make \Drupal\system\Form\CronForm extend from ConfigFormBase.
We get quite a bit of functionality with this change - all the #config_target stuff... but also the overridden config message too.
Comment #19
nicxvan commentedIf you think that is with in scope I think we can do that!
I just rebased again to pull in the fix for the failure on head.
Comment #20
nicxvan commentedWow that actually makes this a lot nicer looking!
Just waiting on a green run.
Comment #21
nicxvan commentedI think this is ready, I also pulled this down and double checked that the overridden message works and it does.
Comment #22
longwaveCommitted and pushed a8fe3f24e96 to main and f2c0dd1902a to 11.x. Thanks!
Comment #27
longwave