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

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

15
book_settings:
16
  pattern: '/admin/structure/book/settings'
17
  defaults:
18
    _form: '\Drupal\book\Form\BookSettingsForm'
19 20
  requirements:
    _permission: 'administer site configuration'
21 22 23 24 25 26 27 28 29 30

book_export:
  pattern: '/book/export/{type}/{node}'
  defaults:
    _controller: '\Drupal\book\Controller\BookController::bookExport'
  options:
    _access_mode: 'ALL'
  requirements:
    _permission: 'access printer-friendly version'
    _entity_access: 'node.view'
31 32 33 34 35 36 37 38 39 40

book_outline:
  pattern: '/node/{node}/outline'
  defaults:
    _entity_form: 'node.book_outline'
  options:
    _access_mode: 'ALL'
  requirements:
    _permission: 'administer book outlines'
    _entity_access: 'node.view'
41 42 43 44 45 46 47 48 49 50 51 52

book_admin_edit:
  pattern: '/admin/structure/book/{node}'
  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+