You are here

workbench.routing.yml in Workbench 8

File

workbench.routing.yml
View source
  1. workbench.admin:
  2. path: '/admin/config/workflow/workbench'
  3. defaults:
  4. _title: 'Workbench settings'
  5. _form: '\Drupal\workbench\Form\WorkbenchSettingsForm'
  6. requirements:
  7. _permission: 'administer workbench'
  8. workbench.content:
  9. path: '/admin/workbench'
  10. defaults:
  11. _controller: '\Drupal\workbench\Controller\WorkbenchContentController::content'
  12. _title: 'My Workbench'
  13. _description: 'My Workbench area'
  14. requirements:
  15. _permission: 'access workbench'
  16. workbench.create_content:
  17. path: '/admin/workbench/create'
  18. defaults:
  19. _controller: '\Drupal\workbench\Controller\WorkbenchContentController::addPage'
  20. _title: 'Add content'
  21. requirements:
  22. _permission: 'access workbench'
  23. _node_add_access: 'node'
  24. workbench.my_edited:
  25. path: '/admin/workbench/content/edited'
  26. defaults:
  27. _controller: '\Drupal\workbench\Controller\WorkbenchContentController::editedContent'
  28. _title: 'My edits'
  29. _description: 'A searchable list of content you have edited'
  30. requirements:
  31. _permission: 'access workbench'
  32. workbench.all_content:
  33. path: '/admin/workbench/content/all'
  34. defaults:
  35. _controller: '\Drupal\workbench\Controller\WorkbenchContentController::allContent'
  36. _title: 'All recent content'
  37. _description: 'A sortable list of all recent content'
  38. requirements:
  39. _permission: 'access workbench'