You are here

ccl.routing.yml in Custom Contextual Links 8

File

ccl.routing.yml
View source
  1. ccl.admin:
  2. path: /admin/config/user-interface/ccl
  3. defaults:
  4. _title: 'Custom Contextual Links'
  5. _controller: '\Drupal\ccl\Controller\DefaultController::ccl_admin'
  6. requirements:
  7. _permission: 'use ccl'
  8. ccl.add_form:
  9. path: '/admin/config/user-interface/ccl/{clid}/edit'
  10. defaults:
  11. clid: 0
  12. _title: 'Edit custom link'
  13. _form: \Drupal\ccl\Form\CclAddForm
  14. requirements:
  15. _permission: 'use ccl'
  16. ccl.delete_confirm:
  17. path: '/admin/config/user-interface/ccl/{id}/delete'
  18. defaults:
  19. _title: 'Delete custom link'
  20. _form: \Drupal\ccl\Form\CclDeleteConfirm
  21. requirements:
  22. _permission: 'use ccl'
  23. ccl.node_autocomplete:
  24. path: /admin/config/user-interface/ccl/autocomplete
  25. defaults:
  26. _title: 'Node autocomplete'
  27. _controller: '\Drupal\ccl\Controller\DefaultController::ccl_node_autocomplete'
  28. requirements:
  29. _permission: 'use ccl'