You are here

paragraphs_edit.routing.yml in Paragraphs Edit 8.2

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

File

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