You are here

log.routing.yml in Log entity 8

Same filename and directory in other branches
  1. 2.x log.routing.yml

File

log.routing.yml
View source
  1. log.add_page:
  2. path: '/log/add'
  3. defaults:
  4. _title: 'Add content'
  5. _controller: '\Drupal\log\Controller\LogController::addPage'
  6. options:
  7. _log_operation_route: TRUE
  8. requirements:
  9. _log_add_access: 'log'
  10. log.add:
  11. path: '/log/add/{log_type}'
  12. defaults:
  13. _controller: '\Drupal\log\Controller\LogController::add'
  14. _title_callback: '\Drupal\log\Controller\LogController::addPageTitle'
  15. requirements:
  16. _log_add_access: 'log:{log_type}'
  17. options:
  18. _log_operation_route: TRUE
  19. parameters:
  20. log_type:
  21. with_config_overrides: TRUE
  22. # LogType routing definition
  23. entity.log_type.collection:
  24. path: '/admin/structure/logs'
  25. defaults:
  26. _entity_list: 'log_type'
  27. _title: 'Log type'
  28. requirements:
  29. _permission: 'administer log types'
  30. options:
  31. _admin_route: TRUE
  32. entity.log_type.add_form:
  33. path: '/admin/structure/logs/add'
  34. defaults:
  35. _entity_form: 'log_type.add'
  36. _title: 'Add Log type'
  37. requirements:
  38. _permission: 'administer log types'
  39. options:
  40. _admin_route: TRUE
  41. log.multiple_delete_confirm:
  42. path: '/admin/content/log/delete'
  43. defaults:
  44. _form: '\Drupal\log\Form\DeleteMultiple'
  45. requirements:
  46. _custom_access: '\Drupal\log\Form\DeleteMultiple::access'