You are here

addanother.routing.yml in Add Another 8

File

addanother.routing.yml
View source
  1. addanother.admin_config:
  2. path: '/admin/config/content/addanother'
  3. defaults:
  4. _form: '\Drupal\addanother\Form\AddAnotherSettingsForm'
  5. _title: 'Add another'
  6. _description: 'Modify which node types display the Add another message.'
  7. requirements:
  8. _permission: 'administer add another'
  9. addanother.redirect:
  10. path: '/node/{node}/addanother'
  11. defaults:
  12. _controller: '\Drupal\addanother\Controller\AddAnotherController::addAnotherGoTo'
  13. _title: 'Add another redirect'
  14. requirements:
  15. _custom_access: '\Drupal\addanother\Controller\AddAnotherController::addAnotherAccess'
  16. options:
  17. _admin_route: TRUE