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 change in #3041435: Provide an automatic local task for the Duplicate operation.
The handler needs to be declared on the type too to have the tabs show up.
Comment | File | Size | Author |
---|---|---|---|
#9 | 3055092-9-add-local-task-type.patch | 2.28 KB | bluegeek9 |
#7 | 3055092-6-add-local-task-type.patch | 3.54 KB | grahl |
#5 | 3055092-5-TEST.patch | 1.64 KB | grahl |
Comments
Comment #2
grahlComment #3
grahlComment #4
RoSk0Awesome, thanks for this.
We need tests for this.
Comment #5
grahlTurns out we already had patches for that but the test is better on "Edit" instead of "Manage Fields" where Field UI takes care of it.
Comment #7
grahlTests fail as expected so here is the change with the test.
Comment #9
bluegeek9 CreditAttribution: bluegeek9 as a volunteer commentedThe task links are stored in crm_core_contact.links.task.yml
Comment #10
bluegeek9 CreditAttribution: bluegeek9 as a volunteer commentedAll tests pass.
Comment #11
bluegeek9 CreditAttribution: bluegeek9 as a volunteer commentedComment #13
grahlThanks for the follow-up bluegeek9, the local task provider doesn't quite do what it promises so I'm leaving it out for now and adding the route as proposed since that works fine.
I've amended the test to check more scenarios on the listing, the edit page of the type and the Manage fields page of the type.