Hi all,
I'm writing a module which defines custom entities, with custom routes, local tabs, etc.
What should I do to allow devel to show its local tab (devel) right where I have my entity's one?
This issue seems to be related to what I want to do, but can't get my head around it. And I can't find any documentation relating to this.
Because my routes are like this:
/admin/content/{mymodule_foo_entity}/1
/admin/content/{mymodule_foo_entity}/edit
/admin/content/{mymodule_foo_entity}/delete
My local tabs appear correctly on those pages (View, Edit, Delete). But I'd like to add devel as well.
I know the route automagically exists under /devel/{mymodule_foo_entity}/1
, but I'd really like to have the tab.
Your help would be very appreciated :)
Cheers,
Jérémy
Comments
Comment #2
willzyx CreditAttribution: willzyx commentedHi @jchatard probably you need to add a "base local task" (eg entity.{yourentity}.canonical) for your entity type or otherwise devel cannot hook his local task to your entities. Please post your code or otherwise is difficult analyze the problem :)
Comment #3
jchatard CreditAttribution: jchatard at Breek commentedHi @willzyx
Thanks for your reply, here is my routing file:
Here's an excerpt from the annotation:
And here is the module.links.task.yml: