Drupal investigation

quickedit.routing.yml 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738
  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}