You are here

paragraphs_edit.routing.yml in Paragraphs Edit 8

Same filename and directory in other branches
  1. 8.2 paragraphs_edit.routing.yml

File

paragraphs_edit.routing.yml
View source
  1. paragraphs_edit.edit_form:
  2. path: '/node/{node}/paragraphs/{field}/{delta}/{paragraph}/edit'
  3. defaults:
  4. _entity_form: 'paragraph.node_edit'
  5. requirements:
  6. _entity_access: 'node.update'
  7. node: \d+
  8. options:
  9. _admin_route: TRUE
  10. parameters:
  11. node:
  12. type: 'entity:node'
  13. paragraph:
  14. type: 'entity:paragraph'
  15. paragraphs_edit.clone_form:
  16. path: '/node/{node}/paragraphs/{field}/{delta}/{paragraph}/clone'
  17. defaults:
  18. _entity_form: 'paragraph.node_clone'
  19. requirements:
  20. _entity_access: 'node.view'
  21. options:
  22. _admin_route: TRUE
  23. parameters:
  24. node:
  25. type: 'entity:node'
  26. paragraph:
  27. type: 'entity:paragraph'
  28. paragraphs_edit.delete_form:
  29. path: '/node/{node}/paragraphs/{field}/{delta}/{paragraph}/delete'
  30. defaults:
  31. _entity_form: 'paragraph.node_delete'
  32. requirements:
  33. _entity_access: 'node.update'
  34. options:
  35. _admin_route: TRUE
  36. parameters:
  37. node:
  38. type: 'entity:node'
  39. paragraph:
  40. type: 'entity:paragraph'