menu_example.links.task.yml

Same filename in other branches
  1. 3.x modules/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. #
  6. # 'base_route' is the same as the name of the route where the "default" tab
  7. # appears. The base_route is used to group together related tabs.
  8. #
  9. # 'weight' is used to provide weights for the tabs if needed.
  10. # The tab whose route is the same as the base_route will by default
  11. # get a negative weight and appear on the left.
  12. #
  13. # 'parent_id' is used to create multi level of tabs.
  14. # To relate a tab to its parent use same name as parent_id as shown below in
  15. # examples.menu_example.tabs.secondary.
  16. #
  17. examples.menu_example.tabs:
  18. route_name: examples.menu_example.tabs
  19. title: Default primary tab
  20. base_route: examples.menu_example.tabs
  21. examples.menu_example.tabs_second:
  22. route_name: examples.menu_example.tabs_second
  23. title: Second
  24. base_route: examples.menu_example.tabs
  25. weight: 2
  26. examples.menu_example.tabs_third:
  27. route_name: examples.menu_example.tabs_third
  28. title: Third
  29. base_route: examples.menu_example.tabs
  30. weight: 3
  31. examples.menu_example.tabs_fourth:
  32. route_name: examples.menu_example.tabs_fourth
  33. title: Fourth
  34. base_route: examples.menu_example.tabs
  35. weight: 4
  36. examples.menu_example.tabs.secondary:
  37. route_name: examples.menu_example.tabs
  38. title: Default secondary tab
  39. parent_id: examples.menu_example.tabs
  40. examples.menu_example.tabs_default_second:
  41. route_name: examples.menu_example.tabs_default_second
  42. title: Second
  43. parent_id: examples.menu_example.tabs
  44. examples.menu_example.tabs_default_third:
  45. route_name: examples.menu_example.tabs_default_third
  46. title: Third
  47. parent_id: examples.menu_example.tabs