vud.routing.yml in Vote Up/Down 8
1 string reference to YAML keys in vud.routing.yml
- VoteUpDownWidgetBase::build in src/
Plugin/ VoteUpDownWidgetBase.php - @fixme Do not use camelcase on variables, and fix coding standards.
File
vud.routing.ymlView source
- vud.admin_advanced_settings:
- path: /admin/config/search/voteupdown
- defaults:
- _title: 'Vote Up/Down'
- _form: \Drupal\vud\Form\VudAdminAdvancedSettings
- requirements:
- _permission: 'administer vote up/down'
-
- vud.vote:
- path: /vote/{entity_type_id}/{entity_id}/{vote_value}/{widget_name}/{js}
- defaults:
- _controller: \Drupal\vud\Controller\VotingApiController::vote
- requirements:
- _custom_access: \Drupal\vud\Controller\VotingApiController::voteAccess
- entity_type_id: ^[A-z]+
- entity_id: ^[0-9_]+
- js: 'nojs|ajax'
- vote_value: ^[-]?1+
- _csrf_token: 'TRUE'
- options:
- _csrf_exclude_parameters: ['js']
-
- vud.reset:
- path: /votereset/{entity_type_id}/{entity_id}/{widget_name}/{js}
- defaults:
- _controller: \Drupal\vud\Controller\VotingApiController::resetVote
- requirements:
- _custom_access: \Drupal\vud\Controller\VotingApiController::resetVoteAccess
- entity_type_id: ^[A-z]+
- entity_id: ^[0-9_]+
- js: 'nojs|ajax'
- _csrf_token: 'TRUE'
- options:
- _csrf_exclude_parameters: ['js']