book.routing.yml 1.3 KB
Newer Older
1
book.render:
2
  path: '/book'
3 4 5 6 7
  defaults:
    _content: '\Drupal\book\Controller\BookController::bookRender'
  requirements:
    _permission: 'access content'

8
book.admin:
9
  path: '/admin/structure/book'
10 11 12 13 14
  defaults:
    _content: '\Drupal\book\Controller\BookController::adminOverview'
  requirements:
    _permission: 'administer book outlines'

15
book.settings:
16
  path: '/admin/structure/book/settings'
17
  defaults:
18
    _form: '\Drupal\book\Form\BookSettingsForm'
19 20
  requirements:
    _permission: 'administer site configuration'
21

22
book.export:
23
  path: '/book/export/{type}/{node}'
24 25 26 27 28 29 30
  defaults:
    _controller: '\Drupal\book\Controller\BookController::bookExport'
  options:
    _access_mode: 'ALL'
  requirements:
    _permission: 'access printer-friendly version'
    _entity_access: 'node.view'
31

32
book.outline:
33
  path: '/node/{node}/outline'
34 35 36 37 38 39 40
  defaults:
    _entity_form: 'node.book_outline'
  options:
    _access_mode: 'ALL'
  requirements:
    _permission: 'administer book outlines'
    _entity_access: 'node.view'
41

42
book.admin_edit:
43
  path: '/admin/structure/book/{node}'
44 45 46 47 48 49 50 51 52
  defaults:
    _form: 'Drupal\book\Form\BookAdminEditForm'
    _title: 'Re-order book pages and change titles'
  options:
    _access_mode: 'ALL'
  requirements:
    _permission: 'administer book outlines'
    _entity_access: 'node.view'
    node: \d+