test_page_test.routing.yml 2.03 KB
Newer Older
1 2 3 4
test_page_test.test_page:
  path: '/test-page'
  defaults:
    _title: 'Test front page'
5
    _controller: '\Drupal\test_page_test\Controller\TestPageTestController::testPage'
6 7 8
  requirements:
    _access: 'TRUE'

9
test_page_test.render_title:
10
  path: '/test-render-title'
11
  defaults:
12
    _controller: '\Drupal\test_page_test\Controller\Test::renderTitle'
13 14
  requirements:
    _access: 'TRUE'
15

16
test_page_test.static_title:
17
  path: '/test-page-static-title'
18
  defaults:
19
    _controller: '\Drupal\test_page_test\Controller\Test::staticTitle'
20 21 22 23
    _title: 'Static title'
  requirements:
    _access: 'TRUE'

24 25 26 27 28 29 30
test_page_test.cached_controller:
  path: '/test-page-cached-controller'
  defaults:
    _controller: '\Drupal\test_page_test\Controller\Test::controllerWithCache'
  requirements:
    _access: 'TRUE'

31
test_page_test.dynamic_title:
32
  path: '/test-page-dynamic-title'
33
  defaults:
34
    _controller: '\Drupal\test_page_test\Controller\Test::staticTitle'
35 36 37 38
    _title_callback: 'Drupal\test_page_test\Controller\Test::dynamicTitle'
  requirements:
    _access: 'TRUE'

39
test_page_test.admin_render_title:
40
  path: '/admin/test-render-title'
41
  defaults:
42
    _controller: '\Drupal\test_page_test\Controller\Test::renderTitle'
43 44
  requirements:
    _access: 'TRUE'
45 46 47 48 49 50 51 52

test_page_test.http_response_exception:
  path: '/test-http-response-exception/{code}'
  defaults:
    _controller: '\Drupal\test_page_test\Controller\Test::httpResponseException'
    code: 200
  requirements:
    _access: 'TRUE'
53 54 55 56 57 58 59 60

test_page_test.error:
  path: '/test-error'
  defaults:
    _controller: '\Drupal\test_page_test\Controller\Test::error'
    code: 200
  requirements:
    _access: 'TRUE'
61 62 63 64 65 66 67 68

test_page_test.encoded:
  path: '/test-encoded'
  defaults:
    _title: 'Page with encoded HTML'
    _controller: '\Drupal\test_page_test\Controller\Test::renderEncodedMarkup'
  requirements:
    _access: 'TRUE'
69 70 71 72 73 74 75 76

test_page_test.pipe:
  path: '/test-pipe-char'
  defaults:
    _title: 'Page with pipe char in link'
    _controller: '\Drupal\test_page_test\Controller\Test::renderPipeInLink'
  requirements:
    _access: 'TRUE'