You are here

script_manager.routing.yml in Script Manager 8

File

script_manager.routing.yml
View source
  1. entity.script.collection:
  2. path: '/admin/structure/scripts'
  3. defaults:
  4. _entity_list: 'script'
  5. _title: 'Scripts'
  6. requirements:
  7. _permission: 'administer scripts'
  8. entity.script.add_form:
  9. path: '/admin/structure/scripts/add'
  10. defaults:
  11. _entity_form: 'script.default'
  12. _title: 'Add script'
  13. requirements:
  14. _entity_create_access: 'script'
  15. entity.script.edit_form:
  16. path: '/admin/structure/scripts/manage/{script}'
  17. defaults:
  18. _entity_form: 'script.default'
  19. _title_callback: '\Drupal\script_manager\Form\ScriptForm::formTitle'
  20. requirements:
  21. _entity_access: 'script.update'
  22. entity.script.delete_form:
  23. path: '/admin/structure/scripts/manage/{script}/delete'
  24. defaults:
  25. _entity_form: 'script.delete'
  26. _title: 'Delete script'
  27. requirements:
  28. _entity_access: 'script.delete'