You are here

tmgmt.routing.yml in Translation Management Tool 8

File

tmgmt.routing.yml
View source
  1. tmgmt.settings:
  2. path: '/admin/tmgmt/settings'
  3. defaults:
  4. _title: 'Settings'
  5. _form: 'Drupal\tmgmt\Form\SettingsForm'
  6. requirements:
  7. _permission: 'administer tmgmt'
  8. entity.tmgmt_translator.collection:
  9. path: '/admin/tmgmt/translators'
  10. defaults:
  11. _title: 'Providers'
  12. _entity_list: 'tmgmt_translator'
  13. requirements:
  14. _permission: 'administer tmgmt'
  15. entity.tmgmt_translator.add_form:
  16. path: '/admin/tmgmt/translators/add'
  17. defaults:
  18. _title: 'Add Provider'
  19. _entity_form: tmgmt_translator.add
  20. requirements:
  21. _entity_create_access: tmgmt_translator
  22. entity.tmgmt_translator.delete_form:
  23. path: '/admin/tmgmt/translators/manage/{tmgmt_translator}/delete'
  24. defaults:
  25. _entity_form: tmgmt_translator.delete
  26. requirements:
  27. _entity_access: tmgmt_translator.delete
  28. entity.tmgmt_translator.clone_form:
  29. path: '/admin/tmgmt/translators/manage/{tmgmt_translator}/clone'
  30. defaults:
  31. _title: 'Clone provider'
  32. _entity_form: tmgmt_translator.clone
  33. requirements:
  34. _entity_access: tmgmt_translator.clone
  35. entity.tmgmt_translator.edit_form:
  36. path: '/admin/tmgmt/translators/manage/{tmgmt_translator}'
  37. defaults:
  38. _title: 'Edit provider'
  39. _entity_form: tmgmt_translator.edit
  40. requirements:
  41. _entity_access: tmgmt_translator.update
  42. tmgmt.admin_tmgmt:
  43. path: '/admin/tmgmt'
  44. defaults:
  45. _controller: '\Drupal\tmgmt\Controller\TMGMTController::translatorAdminMenuBlockPage'
  46. _title: 'Translation'
  47. requirements:
  48. _permission: 'administer tmgmt+create translation jobs+accept translation jobs'
  49. entity.tmgmt_job.canonical:
  50. path: '/admin/tmgmt/jobs/{tmgmt_job}'
  51. defaults:
  52. _entity_form: tmgmt_job.edit
  53. requirements:
  54. _entity_access: tmgmt_job.update
  55. entity.tmgmt_job.delete_form:
  56. path: '/admin/tmgmt/jobs/{tmgmt_job}/delete'
  57. defaults:
  58. _entity_form: tmgmt_job.delete
  59. requirements:
  60. _entity_access: tmgmt_job.delete
  61. entity.tmgmt_job.resubmit_form:
  62. path: '/admin/tmgmt/jobs/{tmgmt_job}/resubmit'
  63. defaults:
  64. _entity_form: tmgmt_job.resubmit
  65. requirements:
  66. _entity_access: tmgmt_job.update
  67. entity.tmgmt_job.abort_form:
  68. path: '/admin/tmgmt/jobs/{tmgmt_job}/abort'
  69. defaults:
  70. _entity_form: tmgmt_job.abort
  71. requirements:
  72. _entity_access: tmgmt_job.update
  73. entity.tmgmt_job_item.canonical:
  74. path: '/admin/tmgmt/items/{tmgmt_job_item}'
  75. defaults:
  76. _title: 'Edit Job Item'
  77. _entity_form: tmgmt_job_item.edit
  78. requirements:
  79. _entity_access: tmgmt_job_item.update
  80. entity.tmgmt_job_item.delete_form:
  81. path: '/admin/tmgmt/items/{tmgmt_job_item}/delete'
  82. defaults:
  83. _entity_form: tmgmt_job_item.delete
  84. requirements:
  85. _entity_access: tmgmt_job_item.delete
  86. entity.tmgmt_job_item.abort_form:
  87. path: '/admin/tmgmt/items/{tmgmt_job_item}/abort'
  88. defaults:
  89. _entity_form: tmgmt_job_item.abort
  90. requirements:
  91. _entity_access: tmgmt_job_item.abort
  92. tmgmt.source_overview:
  93. path: '/admin/tmgmt/sources/{plugin}/{item_type}'
  94. defaults:
  95. _form: 'Drupal\tmgmt\Form\SourceOverviewForm'
  96. requirements:
  97. _entity_create_access: tmgmt_job
  98. entity.tmgmt_job.continuous_add_form:
  99. path: '/admin/tmgmt/continuous_jobs/continuous_add'
  100. defaults:
  101. _entity_form: tmgmt_job.continuous_add
  102. requirements:
  103. _custom_access: '\Drupal\tmgmt\Form\ContinuousJobForm::access'
  104. tmgmt.source_overview_default:
  105. path: '/admin/tmgmt/sources'
  106. defaults:
  107. _title: 'Translation Sources'
  108. _form: 'Drupal\tmgmt\Form\SourceOverviewForm'
  109. requirements:
  110. _entity_create_access: tmgmt_job
  111. tmgmt.cart:
  112. path: '/admin/tmgmt/cart'
  113. defaults:
  114. _form: 'Drupal\tmgmt\Form\CartForm'
  115. _title: 'Cart'
  116. requirements:
  117. _entity_create_access: tmgmt_job