quickedit.routing.yml

Same filename in other branches
  1. 8.9.x core/modules/quickedit/quickedit.routing.yml
core/modules/quickedit/quickedit.routing.yml

File

core/modules/quickedit/quickedit.routing.yml

View source
  1. quickedit.metadata:
  2. path: '/quickedit/metadata'
  3. defaults:
  4. _controller: '\Drupal\quickedit\QuickEditController::metadata'
  5. requirements:
  6. _permission: 'access in-place editing'
  7. quickedit.attachments:
  8. path: '/quickedit/attachments'
  9. defaults:
  10. _controller: '\Drupal\quickedit\QuickEditController::attachments'
  11. requirements:
  12. _permission: 'access in-place editing'
  13. quickedit.field_form:
  14. path: '/quickedit/form/{entity_type}/{entity}/{field_name}/{langcode}/{view_mode_id}'
  15. defaults:
  16. _controller: '\Drupal\quickedit\QuickEditController::fieldForm'
  17. options:
  18. parameters:
  19. entity:
  20. type: entity:{entity_type}
  21. requirements:
  22. _permission: 'access in-place editing'
  23. _access_quickedit_entity_field: 'TRUE'
  24. quickedit.entity_save:
  25. path: '/quickedit/entity/{entity_type}/{entity}'
  26. defaults:
  27. _controller: '\Drupal\quickedit\QuickEditController::entitySave'
  28. requirements:
  29. _permission: 'access in-place editing'
  30. _entity_access: 'entity.update'
  31. options:
  32. parameters:
  33. entity:
  34. type: entity:{entity_type}
  35. quickedit.image_upload:
  36. path: '/quickedit/image/upload/{entity_type}/{entity}/{field_name}/{langcode}/{view_mode_id}'
  37. defaults:
  38. _controller: '\Drupal\quickedit\Controller\QuickEditImageController::upload'
  39. options:
  40. parameters:
  41. entity:
  42. type: entity:{entity_type}
  43. requirements:
  44. _permission: 'access in-place editing'
  45. _access_quickedit_entity_field: 'TRUE'
  46. _method: 'POST'
  47. quickedit.image_info:
  48. path: '/quickedit/image/info/{entity_type}/{entity}/{field_name}/{langcode}/{view_mode_id}'
  49. defaults:
  50. _controller: '\Drupal\quickedit\Controller\QuickEditImageController::getInfo'
  51. options:
  52. parameters:
  53. entity:
  54. type: entity:{entity_type}
  55. requirements:
  56. _permission: 'access in-place editing'
  57. _access_quickedit_entity_field: 'TRUE'
  58. _method: 'GET'
  59. quickedit.field_untransformed_text:
  60. path: '/quickedit/{entity_type}/{entity}/{field_name}/{langcode}/{view_mode_id}'
  61. defaults:
  62. _controller: '\Drupal\quickedit\QuickEditController::getUntransformedText'
  63. options:
  64. parameters:
  65. entity:
  66. type: entity:{entity_type}
  67. requirements:
  68. _permission: 'access in-place editing'
  69. _access_quickedit_entity_field: 'TRUE'

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.