You are here

pdf_using_mpdf.routing.yml in PDF using mPDF 8.2

Same filename and directory in other branches
  1. 8 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. _access_generate_pdf: '{node}'
  14. options:
  15. no_cache: 'TRUE'
  16. parameters:
  17. node:
  18. type: entity:node