summaryrefslogtreecommitdiffstats
path: root/addanother.routing.yml
blob: 22c4de51ecc8f16c2f0758cd88b039c75d183c11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
addanother.admin_config:
  path: '/admin/config/content/addanother'
  defaults:
    _form: '\Drupal\addanother\Form\AddAnotherSettingsForm'
    _title: 'Add another'
    _description: 'Modify which node types display the Add another message.'
  requirements:
    _permission: 'administer add another'

addanother.redirect:
  path: '/node/{node}/addanother'
  defaults:
    _controller: '\Drupal\addanother\Controller\AddAnotherController::addAnotherGoTo'
    _title: 'Add another redirect'
  requirements:
    _custom_access: '\Drupal\addanother\Controller\AddAnotherController::addAnotherAccess'
  options:
      _admin_route: TRUE