You are here

node_clone.routing.yml in Node clone 8

File

node_clone.routing.yml
View source
  1. node_clone.settings:
  2. path: '/admin/config/content/clone'
  3. defaults:
  4. _title: 'Node clone module'
  5. _form: \Drupal\node_clone\Form\NodeCloneSettings
  6. requirements:
  7. _permission: 'administer site configuration'
  8. node_clone.prepopulate_node:
  9. path: '/node/{node}/clone/prepopulate'
  10. defaults:
  11. _title: 'Clone content'
  12. _controller: 'node_clone.form_controller:getContentResult'
  13. requirements:
  14. _custom_access: 'node_clone.form_controller:access'
  15. #_node_add_access: 'node:{node_type}'
  16. node: '\d+'
  17. options:
  18. _node_operation_route: TRUE
  19. parameters:
  20. node:
  21. type: 'entity:node'