synonyms.routing.yml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. entity.synonym.overview:
  2. path: '/admin/structure/synonyms'
  3. defaults:
  4. _controller: 'Drupal\synonyms\Controller\SynonymConfigController::overview'
  5. _title: 'Synonyms'
  6. requirements:
  7. _permission: 'administer synonyms'
  8. entity.synonym.overview.entity_type.bundle.behavior:
  9. path: '/admin/structure/synonyms/{synonyms_entity_type}/{bundle}/{synonyms_behavior_service}'
  10. options:
  11. parameters:
  12. synonyms_entity_type:
  13. type: synonyms_entity_type
  14. synonyms_behavior_service:
  15. type: synonyms_behavior_service
  16. defaults:
  17. _controller: 'Drupal\synonyms\Controller\SynonymConfigController::overviewEntityTypeBundle'
  18. _title: 'Synonyms'
  19. _title_callback: 'Drupal\synonyms\Controller\SynonymConfigController::overviewEntityTypeBundleTitle'
  20. requirements:
  21. _permission: 'administer synonyms'
  22. entity.synonym.entity_type.bundle.behavior.add_form:
  23. path: '/admin/structure/synonyms/{synonyms_entity_type}/{bundle}/{synonyms_behavior_service}/add'
  24. options:
  25. parameters:
  26. synonyms_entity_type:
  27. type: synonyms_entity_type
  28. synonyms_behavior_service:
  29. type: synonyms_behavior_service
  30. defaults:
  31. _entity_form: 'synonym.add'
  32. _title: 'Add synonym configuration'
  33. requirements:
  34. _permission: 'administer synonyms'
  35. entity.synonym.edit_form:
  36. path: '/admin/structure/synonyms/{synonym}'
  37. defaults:
  38. _entity_form: 'synonym.edit'
  39. _title: 'Edit synonym configuration'
  40. requirements:
  41. _permission: 'administer synonyms'
  42. entity.synonym.delete_form:
  43. path: '/admin/structure/synonyms/{synonym}/delete'
  44. defaults:
  45. _entity_form: 'synonym.delete'
  46. _title: 'Delete synonym configuration'
  47. requirements:
  48. _permission: 'administer synonyms'
  49. synonyms.entity_autocomplete:
  50. path: '/synonyms/entity/autocomplete/{target_type}/{token}'
  51. options:
  52. parameters:
  53. target_type:
  54. type: synonyms_entity_type
  55. defaults:
  56. _controller: 'Drupal\synonyms\Controller\EntityAutocomplete::autocomplete'
  57. requirements:
  58. _permission: 'access synonyms entity autocomplete'