You are here

webform_options_limit.routing.yml in Webform 6.x

Same filename and directory in other branches
  1. 8.5 modules/webform_options_limit/webform_options_limit.routing.yml
modules/webform_options_limit/webform_options_limit.routing.yml

File

modules/webform_options_limit/webform_options_limit.routing.yml
View source
  1. entity.webform_options_limit.summary:
  2. path: '/admin/structure/webform/manage/{webform}/results/options-limit'
  3. defaults:
  4. _controller: '\Drupal\webform_options_limit\Controller\WebformOptionsLimitController::index'
  5. _title_callback: '\Drupal\webform\Controller\WebformEntityController::title'
  6. options:
  7. parameters:
  8. webform:
  9. type: 'entity:webform'
  10. requirements:
  11. _entity_access: 'webform.submission_view_any'
  12. _custom_access: '\Drupal\webform_options_limit\Access\WebformOptionsLimitAccess::checkAccess'
  13. # Webform node routes.
  14. # This route will be removed if the webform_node.module is not installed.
  15. # @see \Drupal\webform_options_limit\Routing\WebformOptionsLimitRouteSubscriber
  16. entity.node.webform_options_limit.summary:
  17. path: '/node/{node}/webform/results/options-limit'
  18. defaults:
  19. _controller: '\Drupal\webform_options_limit\Controller\WebformOptionsLimitController::index'
  20. _title_callback: '\Drupal\Core\Entity\Controller\EntityController::title'
  21. operation: webform_submission_view
  22. entity_access: 'webform.submission_view_any'
  23. options:
  24. parameters:
  25. node:
  26. type: 'entity:node'
  27. requirements:
  28. _custom_access: '\Drupal\webform_options_limit\Access\WebformOptionsLimitAccess::checkNodeAccess'