You are here

opigno_certificate.routing.yml in Opigno certificate 3.x

Same filename and directory in other branches
  1. 8 opigno_certificate.routing.yml

File

opigno_certificate.routing.yml
View source
  1. certificate.entity.view:
  2. path: 'certificate/{entity_type}/{entity_id}'
  3. defaults:
  4. _controller: '\Drupal\opigno_certificate\Controller\CertificateController::viewEntity'
  5. _title: 'Certificate'
  6. requirements:
  7. _custom_access: '\Drupal\opigno_certificate\Controller\CertificateController::viewAccess'
  8. certificate.entity.pdf:
  9. path: 'certificate/{entity_type}/{entity_id}/pdf'
  10. defaults:
  11. _controller: '\Drupal\opigno_certificate\Controller\EntityPrintController::viewPrint'
  12. _title: 'Entity Print'
  13. requirements:
  14. _custom_access: '\Drupal\opigno_certificate\Controller\CertificateController::viewAccess'
  15. opigno_certificate.settings:
  16. path: 'admin/structure/opigno_certificate'
  17. defaults:
  18. _controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
  19. _title: 'Opigno Certificate'
  20. requirements:
  21. _permission: 'administer certificates'
  22. options:
  23. _admin_route: TRUE
  24. parameters:
  25. account:
  26. type: entity:user