user_badges.routing.yml in User Badges 8
6 string references to YAML keys in user_badges.routing.yml
- BadgeController::addPage in src/
Controller/ BadgeController.php - Addpage.
- BadgeDeleteForm::getCancelUrl in src/
Entity/ Form/ BadgeDeleteForm.php - Returns the route to go to if the user cancels the action.
- BadgeForm::save in src/
Entity/ Form/ BadgeForm.php - Form submission handler for the 'save' action.
- BadgeListBuilder::buildRow in src/
BadgeListBuilder.php - Builds a row for an entity in the entity listing.
- BadgeTypeDeleteForm::getCancelUrl in src/
Form/ BadgeTypeDeleteForm.php - Returns the route to go to if the user cancels the action.
File
user_badges.routing.ymlView source
-
- # Badge routing definition
- entity.badge.canonical:
- path: '/admin/structure/badge/{badge}'
- defaults:
- _entity_view: 'badge'
- _title: 'Badge'
- requirements:
- _entity_access: 'badge.view'
- options:
- _admin_route: TRUE
-
- entity.badge.collection:
- path: 'admin/badges/list'
- defaults:
- _entity_list: 'badge'
- _title: 'Badge list'
- requirements:
- _permission: 'view badge entities'
- options:
- _admin_route: TRUE
-
- entity.badge.edit_form:
- path: '/admin/structure/badge/{badge}/edit'
- defaults:
- _entity_form: badge.edit
- _title: 'Edit Badge'
- requirements:
- _permission: 'edit badge entities'
- options:
- _admin_route: TRUE
-
- entity.badge.delete_form:
- path: '/admin/structure/badge/{badge}/delete'
- defaults:
- _entity_form: badge.delete
- _title: 'Delete Badge'
- requirements:
- _permission: 'delete badge entities'
- options:
- _admin_route: TRUE
-
- entity.badge_type.add_form:
- path: '/admin/structure/badge_type/add'
- defaults:
- _entity_form: badge_type.add
- _title: 'Add badge type'
- requirements:
- _permission: 'add badge type entities'
- options:
- _admin_route: TRUE
-
- entity.badge_type.edit_form:
- path: '/admin/structure/badge_type/{badge_type}/edit'
- defaults:
- _entity_form: badge_type.edit
- _title: 'Edit badge type'
- requirements:
- _permission: 'edit badge type entities'
- options:
- _admin_route: TRUE
-
- entity.badge_type.delete_form:
- path: '/admin/structure/badge_type/{badge_type}/delete'
- defaults:
- _entity_form: badge_type.delete
- _title: 'Delete badge type'
- requirements:
- _permission: 'delete badge type entities'
- options:
- _admin_route: TRUE
-
- badge.settings:
- path: 'admin/structure/badge_type'
- defaults:
- _entity_list: 'badge_type'
- _title: 'Badge settings'
- requirements:
- _permission: 'view badge type entities'
- options:
- _admin_route: TRUE
-
- user_badges.badges:
- path: 'user/{user}/badges'
- defaults:
- _controller: '\Drupal\user_badges\Controller\UserBadgesListBuilder::badgesListing'
- _title: 'User Badges'
- requirements:
- _user_badges_access_check: 'TRUE'
- user: \d+
-
- user_badges.badge_controller_addPage:
- path: '/admin/structure/badge/add'
- defaults:
- _controller: '\Drupal\user_badges\Controller\BadgeController::addPage'
- _title: 'Add Badge'
- requirements:
- _permission: 'administer badge entities'
- options:
- _admin_route: TRUE
-
- user_badges.badge_controller_add:
- path: 'admin/structure/badge/add/{badge_type}'
- defaults:
- _controller: '\Drupal\user_badges\Controller\BadgeController::add'
- _title_callback: '\Drupal\user_badges\Controller\BadgeController::addBadgeTitle'
- requirements:
- _permission: 'administer badge entities'
- options:
- _admin_route: TRUE
- parameters:
- badge_type:
- type: entity:badge_type