You are here

multi_node_add.routing.yml in Multi Node Add 8

File

multi_node_add.routing.yml
View source
  1. multi_node_add.add:
  2. path: '/multi-node-add/{node_type}'
  3. defaults:
  4. _form: '\Drupal\multi_node_add\Form\MultiNodeAddForm'
  5. _title_callback: '\Drupal\node\Controller\NodeController::addPageTitle'
  6. options:
  7. _node_operation_route: TRUE
  8. requirements:
  9. _node_add_access: 'node:{node_type}'
  10. multi_node_add.frame:
  11. path: '/multi-node-add/{node_type}/frame/{fields}'
  12. defaults:
  13. _controller: '\Drupal\multi_node_add\Controller\MultiNodeAddController::formPage'
  14. _title_callback: '\Drupal\node\Controller\NodeController::addPageTitle'
  15. options:
  16. _node_operation_route: TRUE
  17. requirements:
  18. _node_add_access: 'node:{node_type}'
  19. multi_node_add.status:
  20. path: '/multi-node-add/{node_type}/status/{nid}'
  21. defaults:
  22. _controller: '\Drupal\multi_node_add\Controller\MultiNodeAddController::statusPage'
  23. options:
  24. _node_operation_route: TRUE
  25. requirements:
  26. _node_add_access: 'node:{node_type}'
  27. multi_node_add.add_page:
  28. path: '/multi-node-add'
  29. defaults:
  30. _title: 'Add multiple content'
  31. _controller: '\Drupal\multi_node_add\Controller\MultiNodeAddController::overview'
  32. options:
  33. _access_mode: 'ANY'
  34. _node_operation_route: TRUE
  35. requirements:
  36. _permission: 'administer content types'
  37. _node_add_access: 'node'