system_test.routing.yml 5.39 KB
Newer Older
1
system_test.page_cache_accept_header:
2
  path: '/system-test/page-cache/accept-header'
3 4 5 6 7
  defaults:
    _controller: '\Drupal\system_test\Controller\PageCacheAcceptHeaderController::content'
  requirements:
    _access: 'TRUE'

8 9 10 11
system_test.main_content_handling:
  path: '/system-test/main-content-handling'
  defaults:
    _title: 'Test main content handling'
12
    _controller: '\Drupal\system_test\Controller\SystemTestController::mainContentFallback'
13 14
  requirements:
    _access: 'TRUE'
15 16 17 18 19

system_test.drupal_set_message:
  path: '/system-test/drupal-set-message'
  defaults:
    _title: 'Set messages with drupal_set_message()'
20
    _controller: '\Drupal\system_test\Controller\SystemTestController::drupalSetMessageTest'
21 22
  requirements:
    _access: 'TRUE'
23 24 25 26 27

system_test.main_content_fallback:
  path: '/system-test/main-content-fallback'
  defaults:
    _title: 'Test main content fallback'
28
    _controller: '\Drupal\system_test\Controller\SystemTestController::mainContentFallback'
29 30 31 32 33 34 35
  requirements:
    _access: 'TRUE'

system_test.lock_acquire:
  path: '/system-test/lock-acquire'
  defaults:
    _title: 'Lock acquire'
36
    _controller: '\Drupal\system_test\Controller\SystemTestController::lockAcquire'
37 38
  options:
    no_cache: TRUE
39 40 41 42 43 44 45
  requirements:
    _access: 'TRUE'

system_test.lock_exit:
  path: '/system-test/lock-exit'
  defaults:
    _title: 'Lock acquire then exit'
46
    _controller: '\Drupal\system_test\Controller\SystemTestController::lockExit'
47 48
  options:
    no_cache: TRUE
49 50 51
  requirements:
    _access: 'TRUE'

52 53 54 55
system_test.lock_persist:
  path: '/system-test/lock-persist/{lock_name}'
  defaults:
    _title: 'Persistent lock acquire'
56
    _controller: '\Drupal\system_test\Controller\SystemTestController::lockPersist'
57 58
  options:
    no_cache: TRUE
59 60 61
  requirements:
    _access: 'TRUE'

62 63 64
system_test.cache_tags_page:
  path: '/system-test/cache_tags_page'
  defaults:
65
    _controller: '\Drupal\system_test\Controller\SystemTestController::system_test_cache_tags_page'
66 67 68
  requirements:
    _access: 'TRUE'

69 70 71 72 73 74 75
system_test.cache_maxage_page:
  path: '/system-test/cache_maxage_page'
  defaults:
    _controller: '\Drupal\system_test\Controller\SystemTestController::system_test_cache_maxage_page'
  requirements:
    _access: 'TRUE'

76 77 78 79 80 81 82 83 84 85
system_test.authorize_init:
  path: '/system-test/authorize-init/{page_title}'
  defaults:
    _controller: '\Drupal\system_test\Controller\SystemTestController::authorizeInit'
  requirements:
    _permission: 'administer software updates'

system_test.set_header:
  path: '/system-test/set-header'
  defaults:
86
    _controller: '\Drupal\system_test\Controller\SystemTestController::setHeader'
87
  requirements:
88
    _access: 'TRUE'
89 90 91 92

system_test.shutdown_functions:
  path: '/system-test/shutdown-functions/{arg1}/{arg2}'
  defaults:
93
    _controller: '\Drupal\system_test\Controller\SystemTestController::shutdownFunctions'
94 95
  requirements:
    _access: 'TRUE'
96 97 98

system_test.configure:
  path: '/system-test/configure/{foo}'
99 100
  defaults:
    _title_callback: '\Drupal\system_test\Controller\SystemTestController::configureTitle'
101 102
  requirements:
    _access: 'TRUE'
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118

system_test.request_destination:
  path: '/system-test/request-destination'
  defaults:
    _controller: '\Drupal\system_test\Controller\SystemTestController::requestDestination'
  requirements:
    _access: 'TRUE'


system_test.get_destination:
  path: '/system-test/get-destination'
  defaults:
    _controller: '\Drupal\system_test\Controller\SystemTestController::getDestination'
  requirements:
    _access: 'TRUE'

119 120 121 122 123 124 125 126 127 128 129 130 131
system_test.permission_dependent_content:
  path: '/system-test/permission-dependent-content'
  defaults:
    _controller: '\Drupal\system_test\Controller\SystemTestController::permissionDependentContent'
  requirements:
    _access: 'TRUE'

system_test.permission_dependent_route_access:
  path: '/system-test/permission-dependent-route-access'
  defaults:
    _controller: '\Drupal\system_test\Controller\SystemTestController::mainContentFallback'
  requirements:
    _permission: 'pet llamas'
132 133 134 135 136 137 138 139

system_test.respond_response:
  path: '/system-test/respond-reponse'
  defaults:
    _controller: '\Drupal\system_test\Controller\SystemTestController::respondWithReponse'
  requirements:
    _access: 'TRUE'

140 141 142 143 144 145 146
system_test.respond_public_response:
  path: '/system-test/respond-public-response'
  defaults:
    _controller: '\Drupal\system_test\Controller\SystemTestController::respondWithPublicResponse'
  requirements:
    _access: 'TRUE'

147 148 149 150 151 152
system_test.respond_cacheable_response:
  path: '/system-test/respond-cacheable-reponse'
  defaults:
    _controller: '\Drupal\system_test\Controller\SystemTestController::respondWithCacheableReponse'
  requirements:
    _access: 'TRUE'
153 154 155 156 157 158 159 160 161

system_test.date:
  path: '/system-test/date'
  defaults:
    _controller: '\Drupal\system_test\Controller\SystemTestController::getCurrentDate'
  options:
    no_cache: 'TRUE'
  requirements:
    _access: 'TRUE'
162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177

system_test.custom_4xx_with_limited_access:
  path: '/system-test/custom-4xx'
  defaults:
    _title: 'Admin-only 4xx response'
    _controller: '\Drupal\system_test\Controller\SystemTestController::mainContentFallback'
  requirements:
    _role: 'administrator'

system_test.always_denied:
  path: '/system-test/always-denied'
  defaults:
    _title: 'Always denied'
    _controller: 'chop'
  requirements:
    _access: 'FALSE'
178 179 180 181 182 183 184

system_test.header:
  path: '/system-test/header'
  defaults:
    _controller: '\Drupal\system_test\Controller\SystemTestController::getTestHeader'
  requirements:
    _access: 'TRUE'