You are here

ckeditor5.routing.yml in Drupal 10

core/modules/ckeditor5/ckeditor5.routing.yml

File

core/modules/ckeditor5/ckeditor5.routing.yml
View source
  1. ckeditor5.upload_image:
  2. path: '/ckeditor5/upload-image/{editor}'
  3. defaults:
  4. _controller: '\Drupal\ckeditor5\Controller\CKEditor5ImageController::upload'
  5. methods: [POST]
  6. requirements:
  7. _entity_access: 'editor.use'
  8. _custom_access: '\Drupal\ckeditor5\Controller\CKEditor5ImageController::imageUploadEnabledAccess'
  9. _csrf_token: 'TRUE'
  10. options:
  11. parameters:
  12. editor:
  13. type: entity:editor
  14. ckeditor5.media_entity_metadata:
  15. path: '/ckeditor5/{editor}/media-entity-metadata'
  16. defaults:
  17. _controller: '\Drupal\ckeditor5\Controller\CKEditor5MediaController::mediaEntityMetadata'
  18. methods: [GET]
  19. requirements:
  20. _entity_access: 'editor.use'
  21. _custom_access: '\Drupal\ckeditor5\Controller\CKEditor5MediaController::access'
  22. _csrf_token: 'TRUE'
  23. options:
  24. parameters:
  25. editor:
  26. type: entity:editor