You are here

homebox.routing.yml in Homebox 8

File

homebox.routing.yml
View source
  1. homebox.page:
  2. path: '/homebox-page/{homebox}/{user}'
  3. defaults:
  4. _form: '\Drupal\homebox\Form\HomeboxPageForm'
  5. requirements:
  6. _custom_access: '\Drupal\homebox\Controller\HomeboxController::access'
  7. homebox.settings_form:
  8. path: '/admin/structure/homebox/{homebox}/settings'
  9. defaults:
  10. _entity_form: 'homebox.settings'
  11. _title: 'Homebox settings'
  12. requirements:
  13. _entity_access: 'homebox.settings'
  14. homebox.block.admin_library:
  15. path: '/admin/structure/homebox/block/library/{homebox}'
  16. defaults:
  17. _controller: '\Drupal\homebox\Controller\HomeboxLayoutController::listBlocks'
  18. _title: 'Place block'
  19. requirements:
  20. _permission: 'administer blocks'
  21. entity.homebox_layout.add_form:
  22. path: '/admin/content/homebox/homebox_layout/add/{homebox}'
  23. defaults:
  24. _title: 'Add content'
  25. _controller: '\Drupal\homebox\Controller\HomeboxController::add'
  26. requirements:
  27. _homebox_layout_add_access: 'homebox_layout:{homebox}'
  28. entity.homebox_layout.add_page:
  29. path: '/admin/content/homebox/homebox_layout/add'
  30. defaults:
  31. _title: 'Add homebox layout'
  32. entity_type_id: 'homebox_layout'
  33. _controller: 'Drupal\Core\Entity\Controller\EntityController::addPage'
  34. _title_callback: 'Drupal\Core\Entity\Controller\EntityController::addTitle'
  35. requirements:
  36. _entity_create_any_access: 'homebox_layout'
  37. options:
  38. _admin_route: TRUE