book.routing.yml 1.5 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
  defaults:
    _controller: '\Drupal\book\Controller\BookController::bookExport'
  requirements:
    _permission: 'access printer-friendly version'
    _entity_access: 'node.view'
29

30
book.outline:
31
  path: '/node/{node}/outline'
32 33 34 35 36
  defaults:
    _entity_form: 'node.book_outline'
  requirements:
    _permission: 'administer book outlines'
    _entity_access: 'node.view'
37

38
book.admin_edit:
39
  path: '/admin/structure/book/{node}'
40 41 42 43 44 45 46
  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+
47 48 49 50 51 52 53 54 55 56 57 58

book.remove:
  path: '/node/{node}/outline/remove'
  defaults:
    _content: '\Drupal\book\Form\BookForm::remove'
    _title: 'Remove from outline'
  options:
    _access_mode: 'ALL'
  requirements:
    _permission: 'administer book outlines'
    _entity_access: 'node.view'
    _access_book_removable: 'TRUE'