menu_example.links.task.yml

Same filename in other branches
  1. 3.x modules/menu_example/menu_example.links.task.yml
  2. 8.x-1.x menu_example/menu_example.links.task.yml
modules/menu_example/menu_example.links.task.yml

File

modules/menu_example/menu_example.links.task.yml

View source
  1. # This file creates static local tasks (Tabs).
  2. # This file will be needed to place in module root.
  3. #
  4. # 'title' of the tab will show up on the user interface and tab.
  5. # 'base_route' is the same as the name of the route where the "default" tab
  6. # appears. The base_route is used to group together related tabs.
  7. # 'weight' is used to provide weights for the tabs if needed.
  8. # The tab whose route is the same as the base_route will by default
  9. # get a negative weight and appear on the left.
  10. # 'parent_id' is used to create multi level of tabs.
  11. # To relate a tab to its parent use same name as parent_id as shown below in
  12. # examples.menu_example.tabs.secondary.
  13. #
  14. examples.menu_example.tabs:
  15. route_name: examples.menu_example.tabs
  16. title: Default primary tab
  17. base_route: examples.menu_example.tabs
  18. examples.menu_example.tabs_second:
  19. route_name: examples.menu_example.tabs_second
  20. title: Second
  21. base_route: examples.menu_example.tabs
  22. weight: 2
  23. examples.menu_example.tabs_third:
  24. route_name: examples.menu_example.tabs_third
  25. title: Third
  26. base_route: examples.menu_example.tabs
  27. weight: 3
  28. examples.menu_example.tabs_fourth:
  29. route_name: examples.menu_example.tabs_fourth
  30. title: Fourth
  31. base_route: examples.menu_example.tabs
  32. weight: 4
  33. examples.menu_example.tabs.secondary:
  34. route_name: examples.menu_example.tabs
  35. title: Default secondary tab
  36. parent_id: examples.menu_example.tabs
  37. examples.menu_example.tabs_default_second:
  38. route_name: examples.menu_example.tabs_default_second
  39. title: Second
  40. parent_id: examples.menu_example.tabs
  41. examples.menu_example.tabs_default_third:
  42. route_name: examples.menu_example.tabs_default_third
  43. title: Third
  44. parent_id: examples.menu_example.tabs