You are here

rate.routing.yml in Rate 8.2

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

File

rate.routing.yml
View source
  1. rate.admin_settings:
  2. path: '/admin/config/search/votingapi/rate'
  3. defaults:
  4. _title: 'Rate settings'
  5. _description: 'Management options for the Rate module.'
  6. _form: '\Drupal\rate\Form\RateSettingsForm'
  7. requirements:
  8. _permission: 'administer rate'
  9. # ##############################
  10. # Rate widgets settings
  11. # ##############################
  12. rate.widget_add:
  13. path: '/admin/structure/rate/add'
  14. defaults:
  15. _entity_form: 'rate_widget.add'
  16. _title: 'Add rate widget'
  17. requirements:
  18. _permission: 'administer rate'
  19. entity.rate_widget.edit_form:
  20. path: '/admin/structure/rate/{rate_widget}/edit'
  21. defaults:
  22. _entity_form: 'rate_widget.edit'
  23. _title: 'Edit rate widget'
  24. requirements:
  25. _permission: 'administer rate'
  26. entity.rate_widget.template_form:
  27. path: '/admin/structure/rate/{rate_widget}/template'
  28. defaults:
  29. _entity_form: 'rate_widget.template'
  30. _title: 'Change rate widget template'
  31. requirements:
  32. _permission: 'administer rate'
  33. entity.rate_widget.delete_form:
  34. path: '/admin/structure/rate/{rate_widget}/delete'
  35. defaults:
  36. _entity_form: 'rate_widget.delete'
  37. _title: 'Delete rate_widget'
  38. requirements:
  39. _permission: 'administer rate'
  40. entity.rate_widget.collection:
  41. path: '/admin/structure/rate_widgets'
  42. defaults:
  43. _entity_list: 'rate_widget'
  44. _title: 'Rate widgets'
  45. requirements:
  46. _permission: 'administer rate'
  47. rate.node_results_page:
  48. path: '/node/{node}/node-rating'
  49. defaults:
  50. _title: 'Rate Voting results'
  51. _controller: '\Drupal\rate\Controller\WidgetResultsController::nodeResults'
  52. requirements:
  53. _permission: 'view rate results page'