You are here

opigno_ilt.routing.yml in Opigno Instructor-led Trainings 8

Same filename and directory in other branches
  1. 3.x opigno_ilt.routing.yml

File

opigno_ilt.routing.yml
View source
  1. opigno_ilt.score:
  2. path: '/ilt/{opigno_ilt}/score'
  3. defaults:
  4. _title: 'Score Instructor-Led Training'
  5. _form: '\Drupal\opigno_ilt\Form\ILTScoreForm'
  6. requirements:
  7. _entity_access: opigno_ilt.score
  8. options:
  9. parameters:
  10. opigno_ilt:
  11. type: entity:opigno_ilt
  12. opigno_ilt.opigno_ilt_members_autocomplete:
  13. path: '/ilt/{group}/members/autocomplete'
  14. defaults:
  15. _controller: '\Drupal\opigno_ilt\Controller\ILTController::membersAutocomplete'
  16. requirements:
  17. _entity_access: group.view
  18. options:
  19. parameters:
  20. group:
  21. type: entity:group
  22. account:
  23. type: entity:user
  24. opigno_ilt.opigno_ilt_trainer_autocomplete:
  25. path: '/ilt/{group}/trainer/autocomplete'
  26. defaults:
  27. _controller: '\Drupal\opigno_ilt\Controller\ILTController::trainerAutocomplete'
  28. requirements:
  29. _entity_access: group.view
  30. options:
  31. parameters:
  32. group:
  33. type: entity:group
  34. account:
  35. type: entity:user
  36. entity.opigno_ilt.canonical:
  37. path: '/ilt/{opigno_ilt}'
  38. defaults:
  39. _entity_view: opigno_ilt.full
  40. _title: 'Instructor-Led Training'
  41. requirements:
  42. _entity_access: opigno_ilt.view
  43. entity.opigno_ilt.collection:
  44. path: '/admin/content/ilt'
  45. defaults:
  46. _entity_list: opigno_ilt
  47. _title: 'Instructor-Led Training List'
  48. requirements:
  49. _permission: 'administer ilt entities'
  50. options:
  51. _admin_route: TRUE
  52. entity.opigno_ilt.create_form:
  53. path: '/ilt/add'
  54. defaults:
  55. _entity_form: opigno_ilt.add
  56. _title: 'Create Instructor-Led Training'
  57. requirements:
  58. _entity_create_access: opigno_ilt
  59. entity.opigno_ilt.edit_form:
  60. path: '/ilt/{opigno_ilt}/edit'
  61. defaults:
  62. _entity_form: opigno_ilt.edit
  63. _title: 'Edit Instructor-Led Training'
  64. requirements:
  65. _entity_access: opigno_ilt.edit
  66. entity.opigno_ilt.delete_form:
  67. path: '/ilt/{opigno_ilt}/delete'
  68. defaults:
  69. _entity_form: opigno_ilt.delete
  70. _title: 'Delete Instructor-Led Training'
  71. requirements:
  72. _entity_access: opigno_ilt.delete
  73. entity.opigno_ilt_result.canonical:
  74. path: '/ilt-result/{opigno_ilt_result}'
  75. defaults:
  76. _entity_view: opigno_ilt_result.full
  77. _title: 'Instructor-Led Training Result'
  78. requirements:
  79. _entity_access: opigno_ilt_result.view
  80. entity.opigno_ilt_result.collection:
  81. path: '/admin/content/ilt-result'
  82. defaults:
  83. _entity_list: opigno_ilt_result
  84. _title: 'Instructor-Led Trainings Result List'
  85. requirements:
  86. _permission: 'administer ilt result entities'
  87. options:
  88. _admin_route: TRUE
  89. entity.opigno_ilt_result.create_form:
  90. path: '/ilt-result/add'
  91. defaults:
  92. _entity_form: opigno_ilt_result.add
  93. _title: 'Create Instructor-Led Training Result'
  94. requirements:
  95. _entity_create_access: opigno_ilt_result
  96. entity.opigno_ilt_result.edit_form:
  97. path: '/ilt-result/{opigno_ilt_result}/edit'
  98. defaults:
  99. _entity_form: opigno_ilt_result.edit
  100. _title: 'Edit Instructor-Led Training Result'
  101. requirements:
  102. _entity_access: opigno_ilt_result.edit
  103. entity.opigno_ilt_result.delete_form:
  104. path: '/ilt-result/{opigno_ilt_result}/delete'
  105. defaults:
  106. _entity_form: opigno_ilt_result.delete
  107. _title: 'Delete Instructor-Led Training Result'
  108. requirements:
  109. _entity_access: opigno_ilt_result.delete
  110. opigno_ilt.settings:
  111. path: '/admin/structure/opigno_ilt'
  112. defaults:
  113. _controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
  114. _title: 'Instructor-Led Training'
  115. requirements:
  116. _permission: 'administer ilt entities'
  117. options:
  118. _admin_route: TRUE
  119. parameters:
  120. account:
  121. type: entity:user