pdf_using_mpdf.routing.yml in PDF using mPDF 8
Same filename and directory in other branches
File
pdf_using_mpdf.routing.ymlView source
- pdf_using_mpdf.admin_form:
- path: 'admin/config/user-interface/mpdf'
- defaults:
- _form: '\Drupal\pdf_using_mpdf\Form\AdminSettingsForm'
- _title: 'PDF using mPDF settings'
- requirements:
- _permission: 'administer mpdf settings'
-
- pdf_using_mpdf.generate_pdf:
- path: 'node/{node}/pdf'
- defaults:
- _controller: '\Drupal\pdf_using_mpdf\Controller\GeneratePdf::generate'
- requirements:
- _custom_access: '\Drupal\pdf_using_mpdf\Controller\GeneratePdf::checkAccess'
- options:
- parameters:
- node:
- type: entity:node