onlyone.routing.yml in Allow a content type only once (Only One) 8
File
onlyone.routing.ymlView source
- onlyone.config_content_types:
- path: /admin/config/content/onlyone
- defaults:
- _title: 'Only One'
- _form: \Drupal\onlyone\Form\ConfigContentTypes
- requirements:
- _permission: 'administer onlyone'
- options:
- _admin_route: TRUE
-
- onlyone.admin_settings:
- path: '/admin/config/content/onlyone/settings'
- defaults:
- _form: '\Drupal\onlyone\Form\OnlyOneAdminSettings'
- _title: 'Only One Settings'
- requirements:
- _permission: 'administer onlyone'
- options:
- _admin_route: TRUE
-
- route_callbacks:
- - '\Drupal\onlyone\Routing\OnlyOneRoutes::routes'