You are here

pdf_using_mpdf.routing.yml in PDF using mPDF 8

Same filename and directory in other branches
  1. 8.2 pdf_using_mpdf.routing.yml

File

pdf_using_mpdf.routing.yml
View source
  1. pdf_using_mpdf.admin_form:
  2. path: 'admin/config/user-interface/mpdf'
  3. defaults:
  4. _form: '\Drupal\pdf_using_mpdf\Form\AdminSettingsForm'
  5. _title: 'PDF using mPDF settings'
  6. requirements:
  7. _permission: 'administer mpdf settings'
  8. pdf_using_mpdf.generate_pdf:
  9. path: 'node/{node}/pdf'
  10. defaults:
  11. _controller: '\Drupal\pdf_using_mpdf\Controller\GeneratePdf::generate'
  12. requirements:
  13. _custom_access: '\Drupal\pdf_using_mpdf\Controller\GeneratePdf::checkAccess'
  14. options:
  15. parameters:
  16. node:
  17. type: entity:node