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 #2779939: Cleanup the ModerationInformationInterface
Problem/Motivation
ModerationInformationInterface should have nothing to do with forms
Proposed resolution
Remove isModeratedEntityForm and isRevisionableBundleForm
Remaining tasks
User interface changes
None
API changes
Removals:
- Remove ModerationInformationInterface::isRevisionableBundleForm() it is unnecessary and removed
- Remove ModerationInformationInterface::isModeratedEntityForm() it is unnecessary and removed
Data model changes
None
Comment | File | Size | Author |
---|---|---|---|
#7 | 2784341-7.patch | 9.18 KB | alexpott |
#4 | 2784341-4.patch | 9.21 KB | alexpott |
#4 | 3-4-interdiff.txt | 2.15 KB | alexpott |
#3 | 2784341-3.patch | 7.06 KB | alexpott |
#3 | 2-3-interdiff.txt | 1.81 KB | alexpott |
Comments
Comment #2
alexpottThe calls to the moderation information methods will need fixing if #2779939: Cleanup the ModerationInformationInterface lands.
Comment #3
alexpottOops forgot to the remove the methods... and the fact these can be refactored without altering tests shows that these methods have little business being on a public service.
Comment #4
alexpottWell there were unit tests of the service... lol. Still no point these methods being on a service they are tightly bound to the hook implementation.
Comment #6
timmillwoodThink we're good to go!
Comment #7
alexpottRerolled because #2779939: Cleanup the ModerationInformationInterface landed.
Comment #8
alexpottComment #10
alexpott