You are here

course_certificate.routing.yml in Course 8.3

Same filename and directory in other branches
  1. 8.2 modules/course_certificate/course_certificate.routing.yml
modules/course_certificate/course_certificate.routing.yml

File

modules/course_certificate/course_certificate.routing.yml
View source
  1. certificate.course:
  2. path: 'course/{course}/certificate'
  3. defaults:
  4. _controller: '\Drupal\course_certificate\Controller\CertificateTabController::renderDefaultCertificateTab'
  5. _title: 'Claim Certificate'
  6. requirements:
  7. _custom_access: '\Drupal\course_certificate\Controller\CertificateTabController::accessDefaultTab'
  8. options:
  9. parameters:
  10. course:
  11. type: entity:course
  12. certificate.course.user:
  13. path: 'course/{course}/certificate/{account}'
  14. defaults:
  15. _controller: '\Drupal\course_certificate\Controller\CertificateTabController::renderCertificateTab'
  16. _title: 'Download Certificate'
  17. requirements:
  18. _custom_access: '\Drupal\course_certificate\Controller\CertificateTabController::accessTab'
  19. options:
  20. parameters:
  21. course:
  22. type: entity:course
  23. account:
  24. type: entity:user
  25. certificate.course.pdf:
  26. path: 'course/{course}/certificate/{account}/{template}'
  27. defaults:
  28. _controller: '\Drupal\course_certificate\Controller\CertificateTabController::returnPdf'
  29. _title: 'Preview Certificate'
  30. requirements:
  31. _custom_access: '\Drupal\course_certificate\Controller\CertificateTabController::accessPdf'
  32. options:
  33. parameters:
  34. course:
  35. type: entity:course
  36. account:
  37. type: entity:user
  38. template:
  39. type: entity:certificate_template