synonyms.routing.yml in Synonyms 8
File
synonyms.routing.yml
View source
- entity.synonym.overview:
- path: '/admin/structure/synonyms'
- defaults:
- _controller: 'Drupal\synonyms\Controller\SynonymConfigController::overview'
- _title: 'Synonyms'
- requirements:
- _permission: 'administer synonyms'
-
- entity.synonym.overview.entity_type.bundle.behavior:
- path: '/admin/structure/synonyms/{synonyms_entity_type}/{bundle}/{synonyms_behavior_service}'
- options:
- parameters:
- synonyms_entity_type:
- type: synonyms_entity_type
- synonyms_behavior_service:
- type: synonyms_behavior_service
- defaults:
- _controller: 'Drupal\synonyms\Controller\SynonymConfigController::overviewEntityTypeBundle'
- _title: 'Synonyms'
- _title_callback: 'Drupal\synonyms\Controller\SynonymConfigController::overviewEntityTypeBundleTitle'
- requirements:
- _permission: 'administer synonyms'
-
- entity.synonym.entity_type.bundle.behavior.add_form:
- path: '/admin/structure/synonyms/{synonyms_entity_type}/{bundle}/{synonyms_behavior_service}/add'
- options:
- parameters:
- synonyms_entity_type:
- type: synonyms_entity_type
- synonyms_behavior_service:
- type: synonyms_behavior_service
- defaults:
- _entity_form: 'synonym.add'
- _title: 'Add synonym configuration'
- requirements:
- _permission: 'administer synonyms'
-
- entity.synonym.edit_form:
- path: '/admin/structure/synonyms/{synonym}'
- defaults:
- _entity_form: 'synonym.edit'
- _title: 'Edit synonym configuration'
- requirements:
- _permission: 'administer synonyms'
-
- entity.synonym.delete_form:
- path: '/admin/structure/synonyms/{synonym}/delete'
- defaults:
- _entity_form: 'synonym.delete'
- _title: 'Delete synonym configuration'
- requirements:
- _permission: 'administer synonyms'
-
- synonyms.entity_autocomplete:
- path: '/synonyms/entity/autocomplete/{target_type}/{token}'
- options:
- parameters:
- target_type:
- type: synonyms_entity_type
- defaults:
- _controller: 'Drupal\synonyms\Controller\EntityAutocomplete::autocomplete'
- requirements:
- _permission: 'access synonyms entity autocomplete'