Customize menu local task links
For preprocess function you can use HOOK_preprocess_menu_local_tasks(&amp;$variables) {... where HOOK is the name of your active theme.
And for template suggestions you need to enable debugging and see with inspect element, as usual it must be menu-local-tasks.html.twig