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

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

17
book.settings:
18
  path: '/admin/structure/book/settings'
19
  defaults:
20
    _form: '\Drupal\book\Form\BookSettingsForm'
21
    _title: 'Books'
22 23
  requirements:
    _permission: 'administer site configuration'
24

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

33
book.outline:
34
  path: '/node/{node}/outline'
35 36
  defaults:
    _entity_form: 'node.book_outline'
37
    _title: 'Outline'
38 39 40
  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
  defaults:
    _form: 'Drupal\book\Form\BookAdminEditForm'
    _title: 'Re-order book pages and change titles'
  requirements:
    _permission: 'administer book outlines'
    _entity_access: 'node.view'
    node: \d+
51 52 53 54

book.remove:
  path: '/node/{node}/outline/remove'
  defaults:
55
    _form: '\Drupal\book\Form\BookRemoveForm'
56 57 58 59 60 61 62
    _title: 'Remove from outline'
  options:
    _access_mode: 'ALL'
  requirements:
    _permission: 'administer book outlines'
    _entity_access: 'node.view'
    _access_book_removable: 'TRUE'