rate.routing.yml in Rate 8
File
rate.routing.yml
View source
- rate.admin_settings:
- path: '/admin/config/search/votingapi/rate'
- defaults:
- _title: 'Rate settings'
- _description: 'Management options for the Rate module.'
- _form: '\Drupal\rate\Form\RateSettingsForm'
- requirements:
- _permission: 'administer rate'
- rate.vote:
- path: '/rate/{entity_type_id}/{entity_id}/{vote_type_id}/{value}/{widget_type}'
- defaults:
- _controller: '\Drupal\rate\Controller\VoteController::vote'
- requirements:
- _permission: 'access content'
- rate.undo_vote:
- path: '/rate/undo/{entity_type_id}/{entity_id}/{widget_type}'
- defaults:
- _controller: 'Drupal\rate\Controller\VoteController::undoVote'
- requirements:
- _permission: 'access content'
- rate.results_page:
- path: '/node/{node}/rating'
- defaults:
- _title: 'Rate Voting results'
- _controller: '\Drupal\rate\Controller\ResultsController::results'
- requirements:
- _permission: 'view rate results page'