Problem/Motivation
It would be great to be able to alter the getCandidatesRevisions query, along the same lines as what was done for the getCandidatesNodes query in https://www.drupal.org/project/node_revision_delete/issues/2905912.
This could be helpful in complex workflows with different "published" states.
For example, a workflow might have a "pre-published" moderation state whose revisions should never be deleted.
Proposed resolution
Add the following tags to the sub-query:
- 'node_revision_delete_candidate_revisions'
- 'node_revision_delete_candidate_revisions_' . $content_type
Remaining tasks
- add tags
- write tests
Issue fork node_revision_delete-3216266
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:
Comments
Comment #3
semiaddict commentedComment #6
adriancidThanks
Comment #7
adriancid