ckeditor5.routing.yml

Same filename in other branches
  1. 9 core/modules/ckeditor5/ckeditor5.routing.yml
  2. 11.x core/modules/ckeditor5/ckeditor5.routing.yml
core/modules/ckeditor5/ckeditor5.routing.yml
1 string reference to YAML keys in ckeditor5.routing.yml
ImageUploadTest::getUploadUrl in core/modules/ckeditor5/tests/src/Functional/ImageUploadTest.php
Provides the image upload URL.

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

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