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 for #2004428: Less ugly operations altering
Problem/Motivation
Should have an alter for adding translation tab.
Currently we do: function config_translation_menu().
Proposed resolution
Add the alter hook.
Remaining tasks
patch
User interface changes
No.
API changes
Yes. (describe...)
Comment | File | Size | Author |
---|---|---|---|
#6 | config_translation.code_.2011332-6.patch | 686 bytes | YesCT |
Comments
Comment #1
YesCT CreditAttribution: YesCT commentedrelated: #2004408-12: Allow modules to alter the result of EntityListController::getOperations
Comment #2
YesCT CreditAttribution: YesCT commentedhmm. maybe we add the hook in core and then use it here.
Comment #3
Gábor HojtsyDid you mean *alter* instead of *later*? I'm not sure how we could improve on the menu creation, it is already as simple as possible. I don't believe any of the operations patches suggest implementing menu items based on operations, so we need to make do without that and do our own menu items. So I'm not sure there is anything to do here?
Comment #4
YesCT CreditAttribution: YesCT commentedComment #5
YesCT CreditAttribution: YesCT commentedThis is an @todo in the code.
Since this is the best we can do, taking out the @todo.
Comment #6
YesCT CreditAttribution: YesCT commentedComment #7
YesCT CreditAttribution: YesCT commentedComment #8
Gábor HojtsyYeah I think that seems to be the best we can do. If this module is in core, people will just work with it.
Comment #9
vijaycs85Committed 080878e and pushed to 8.x-1.x. Thanks!
Comment #10.0
(not verified) CreditAttribution: commentedUpdated issue summary.