You are here

menu_test.links.action.yml in Drupal 9

core/modules/system/tests/modules/menu_test/menu_test.links.action.yml

File

core/modules/system/tests/modules/menu_test/menu_test.links.action.yml
View source
  1. menu_test_local_action4:
  2. route_name: menu_test.local_action3
  3. title: 'My YAML discovery action'
  4. appears_on:
  5. - menu_test.local_action1
  6. menu_test.local_action5:
  7. route_name: menu_test.local_action5
  8. class: '\Drupal\menu_test\Plugin\Menu\LocalAction\TestLocalAction'
  9. weight: 10
  10. appears_on:
  11. - menu_test.local_action1
  12. menu_test.local_action.cache_check:
  13. route_name: menu_test.local_action5
  14. class: '\Drupal\menu_test\Plugin\Menu\LocalAction\TestLocalActionWithConfig'
  15. cache_tags:
  16. - config:menu_test.links.action
  17. appears_on:
  18. - menu_test.local_action6
  19. menu_test.local_action2:
  20. route_name: menu_test.local_action2
  21. title: 'My hook_menu action'
  22. weight: -10
  23. appears_on:
  24. - menu_test.local_action1
  25. menu_test.local_action4:
  26. route_name: menu_test.local_action4
  27. title: 'My dynamic title action'
  28. weight: -20
  29. class: '\Drupal\menu_test\Plugin\Menu\LocalAction\TestLocalAction4'
  30. appears_on:
  31. - menu_test.local_action1
  32. menu_test.local_action_derivative:
  33. route_name: menu_test.local_action4
  34. weight: -20
  35. deriver: Drupal\menu_test\Plugin\Derivative\LocalActionTest
  36. class: Drupal\Core\Menu\LocalActionDefault
  37. appears_on:
  38. - menu_test.local_action1
  39. menu_test.local_action6:
  40. route_name: menu_test.local_action4
  41. title: 'Dynamic local action with user input'
  42. weight: -15
  43. class: '\Drupal\menu_test\Plugin\Menu\LocalAction\TestLocalAction5'
  44. appears_on:
  45. - menu_test.local_action1
  46. menu_test.local_action7:
  47. route_name: menu_test.local_action7
  48. title: 'Local action with access'
  49. appears_on:
  50. - menu_test.local_action7
  51. menu_test.local_action8:
  52. route_name: menu_test.local_action8
  53. title: 'Local action without access'
  54. appears_on:
  55. - menu_test.local_action7
  56. menu_test.hidden_menu_add:
  57. route_name: menu_test.hidden_menu_add
  58. title: 'Add menu'
  59. appears_on:
  60. - menu_test.hidden_menu
  61. menu_test.hidden_manage_add:
  62. route_name: menu_test.hidden_manage_add
  63. title: 'Add link'
  64. appears_on:
  65. - menu_test.hidden_manage
  66. menu_test.hidden_block_add:
  67. route_name: menu_test.hidden_block_add
  68. title: 'Add block'
  69. appears_on:
  70. - menu_test.hidden_block