-
Notifications
You must be signed in to change notification settings - Fork 0
/
commerce_recruiting.routing.yml
47 lines (43 loc) · 1.6 KB
/
commerce_recruiting.routing.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
commerce_recruiting.collections:
path: '/admin/commerce/recruitment'
defaults:
_controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
_title: 'Recruitment'
requirements:
_permission: 'administer recruitment entities'
commerce_recruiting.recruitment_url:
path: '/code/{campaign_code}'
defaults:
_controller: '\Drupal\commerce_recruiting\Controller\RecruitmentCodeController::code'
_title: 'redirectFromRecruitmentUrl'
requirements:
_permission: 'access content'
commerce_recruiting.create_reward:
path: '/user/rewards/collect/{campaign}'
defaults:
_controller: '\Drupal\commerce_recruiting\Controller\RewardController::createReward'
_title: 'Collect reward'
requirements:
_permission: 'access content'
options:
parameters:
campaign:
type: 'entity:commerce_recruitment_campaign'
commerce_recruiting.configuration:
path: '/admin/commerce/config/recruiting'
defaults:
_controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
_title: 'Recruiting'
requirements:
_permission: 'access commerce administration pages'
commerce_recruiting.campaign.recruiters_list:
path: '/admin/commerce/recruitment/campaigns/{commerce_recruitment_campaign}/recruiters'
defaults:
_controller: '\Drupal\commerce_recruiting\Controller\CampaignController::recruitersListPage'
_title: 'Recruiters of this campaign'
requirements:
_permission: 'access commerce administration pages'
options:
parameters:
commerce_recruitment_campaign:
type: 'entity:commerce_recruitment_campaign'