You are here

config_split.routing.yml in Configuration Split 2.0.x

Same filename and directory in other branches
  1. 8 config_split.routing.yml

File

config_split.routing.yml
View source
  1. # Enable and disable just switch the status, but do not change other config
  2. entity.config_split.enable:
  3. path: '/admin/config/development/configuration/config-split/{config_split}/enable'
  4. defaults:
  5. _controller: '\Drupal\config_split\Controller\ConfigSplitController::enableEntity'
  6. requirements:
  7. _permission: 'administer configuration split'
  8. entity.config_split.disable:
  9. path: '/admin/config/development/configuration/config-split/{config_split}/disable'
  10. defaults:
  11. _controller: '\Drupal\config_split\Controller\ConfigSplitController::disableEntity'
  12. requirements:
  13. _permission: 'administer configuration split'
  14. # Importing or activating the split writes the split config to the active one.
  15. entity.config_split.activate:
  16. path: '/admin/config/development/configuration/config-split/{config_split}/activate'
  17. defaults:
  18. _form: '\Drupal\config_split\Form\ConfigSplitActivateForm'
  19. _title: 'Activate'
  20. requirements:
  21. _custom_access: '\Drupal\config_split\Form\ConfigSplitActivateForm::access'
  22. # Deactivating the split will remove the splits config from the active storage.
  23. entity.config_split.deactivate:
  24. path: '/admin/config/development/configuration/config-split/{config_split}/deactivate'
  25. defaults:
  26. _form: '\Drupal\config_split\Form\ConfigSplitDeactivateForm'
  27. _title: 'Deactivate'
  28. requirements:
  29. _custom_access: '\Drupal\config_split\Form\ConfigSplitDeactivateForm::access'
  30. # Importing or activating the split writes the split config to the active one.
  31. entity.config_split.import:
  32. path: '/admin/config/development/configuration/config-split/{config_split}/import'
  33. defaults:
  34. _form: '\Drupal\config_split\Form\ConfigSplitImportForm'
  35. _title: 'Import'
  36. requirements:
  37. _custom_access: '\Drupal\config_split\Form\ConfigSplitImportForm::access'
  38. # Exporting the split writes the split config to the split storage.
  39. entity.config_split.export:
  40. path: '/admin/config/development/configuration/config-split/{config_split}/export'
  41. defaults:
  42. _form: '\Drupal\config_split\Form\ConfigSplitExportForm'
  43. _title: 'Export'
  44. requirements:
  45. _custom_access: '\Drupal\config_split\Form\ConfigSplitExportForm::access'
  46. # Diff path to see what is importing.
  47. config_split.diff:
  48. path: '/admin/config/development/configuration/config-split/{config_split}/{operation}/diff/{source_name}/{target_name}'
  49. defaults:
  50. _controller: '\Drupal\config_split\Controller\ConfigSplitDiffController::diff'
  51. target_name: NULL
  52. requirements:
  53. _permission: 'administer configuration split'
  54. config_split.diff_collection:
  55. path: '/admin/config/development/configuration/config-split/{config_split}/{operation}/diff_collection/{collection}/{source_name}/{target_name}'
  56. defaults:
  57. _controller: '\Drupal\config_split\Controller\ConfigSplitDiffController::diff'
  58. target_name: NULL
  59. requirements:
  60. _permission: 'administer configuration split'