You are here

webform_templates.routing.yml in Webform 8.5

Same filename and directory in other branches
  1. 6.x modules/webform_templates/webform_templates.routing.yml
modules/webform_templates/webform_templates.routing.yml

File

modules/webform_templates/webform_templates.routing.yml
View source
  1. entity.webform.templates:
  2. path: '/admin/structure/webform/templates'
  3. defaults:
  4. _controller: '\Drupal\webform_templates\Controller\WebformTemplatesController::index'
  5. _title: 'Webforms: Templates'
  6. requirements:
  7. _custom_access: '\Drupal\webform\Access\WebformAccountAccess::checkTemplatesAccess'
  8. entity.webform.templates.manage:
  9. path: '/admin/structure/webform/templates/manage'
  10. defaults:
  11. _controller: '\Drupal\webform_templates\Controller\WebformTemplatesController::index'
  12. _title: 'Webforms: Templates'
  13. manage: true
  14. requirements:
  15. _custom_access: '\Drupal\webform\Access\WebformAccountAccess::checkTemplatesAccess'
  16. _permission: 'administer webform templates'
  17. entity.webform.preview:
  18. path: '/webform/{webform}/preview'
  19. defaults:
  20. _controller: '\Drupal\webform_templates\Controller\WebformTemplatesController::previewForm'
  21. _title_callback: '\Drupal\webform_templates\Controller\WebformTemplatesController::previewtitle'
  22. requirements:
  23. _entity_access: 'webform.submission_page'
  24. entity.webform.templates.autocomplete:
  25. path: '/admin/structure/webform/templates/autocomplete'
  26. defaults:
  27. _controller: '\Drupal\webform\Controller\WebformEntityController::autocomplete'
  28. templates: TRUE
  29. requirements:
  30. _custom_access: '\Drupal\webform\Access\WebformAccountAccess::checkTemplatesAccess'