menu_test.local_actions.yml 1.09 KB
Newer Older
1
menu_test_local_action4:
2 3 4 5
  route_name: menu_test.local_action3
  title: 'My YAML discovery action'
  appears_on:
    - menu_test.local_action1
6 7 8 9 10 11 12 13

menu_test.local_action5:
  route_name: menu_test.local_action5
  class: '\Drupal\menu_test\Plugin\Menu\LocalAction\TestLocalAction'
  weight: 10
  appears_on:
    - menu_test.local_action1

14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
menu_test.local_action2:
  route_name: menu_test.local_action2
  title: 'My hook_menu action'
  weight: -10
  appears_on:
    - menu_test.local_action1

menu_test.local_action4:
  route_name: menu_test.local_action4
  title: 'My dynamic title action'
  weight: -20
  class: '\Drupal\menu_test\Plugin\Menu\LocalAction\TestLocalAction4'
  appears_on:
    - menu_test.local_action1

menu_test.hidden_menu_add:
  route_name: menu_test.hidden_menu_add
  title: 'Add menu'
  appears_on:
    - menu_test.hidden_menu

menu_test.hidden_manage_add:
  route_name: menu_test.hidden_manage_add
  title: 'Add link'
  appears_on:
    - menu_test.hidden_manage

menu_test.hidden_block_add:
  route_name: menu_test.hidden_block_add
  title: 'Add block'
  appears_on:
    - menu_test.hidden_block