You are here

onlyone.routing.yml in Allow a content type only once (Only One) 8

File

onlyone.routing.yml
View source
  1. onlyone.config_content_types:
  2. path: /admin/config/content/onlyone
  3. defaults:
  4. _title: 'Only One'
  5. _form: \Drupal\onlyone\Form\ConfigContentTypes
  6. requirements:
  7. _permission: 'administer onlyone'
  8. options:
  9. _admin_route: TRUE
  10. onlyone.admin_settings:
  11. path: '/admin/config/content/onlyone/settings'
  12. defaults:
  13. _form: '\Drupal\onlyone\Form\OnlyOneAdminSettings'
  14. _title: 'Only One Settings'
  15. requirements:
  16. _permission: 'administer onlyone'
  17. options:
  18. _admin_route: TRUE
  19. route_callbacks:
  20. - '\Drupal\onlyone\Routing\OnlyOneRoutes::routes'