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
Contact module defines actions in the CategoryFormController::form() method.
Proposed resolution
CategoryFormController should implement ::actions() in order to set the text of the submit button.
Remaining tasks
Needs patch.
User interface changes
None.
API changes
None.
Related Issues
None.
Comment | File | Size | Author |
---|---|---|---|
#5 | 2115631-5.patch | 617 bytes | andypost |
#1 | 2115631.1.categoryActionForm.patch | 1.12 KB | socketwench |
Comments
Comment #1
socketwench CreditAttribution: socketwench commentedComment #2
tim.plunkettActually, I think this is already 'Save', this needs manually testing but I think it needs
unset($actions['delete']);
Comment #4
larowlan1: 2115631.1.categoryActionForm.patch queued for re-testing.
Comment #5
andypostManually tested, this simply just use defaults (Save), that's why test coverage works
@tim.plunkett no need to unset the delete is covered by entity access controller, so "personal" is protected from edit and delete
Comment #6
alexpottCommitted 2093f34 and pushed to 8.x. Thanks!