editor.routing.yml

Same filename in other branches
  1. 9 core/modules/editor/editor.routing.yml
  2. 10 core/modules/editor/editor.routing.yml
  3. 11.x core/modules/editor/editor.routing.yml
core/modules/editor/editor.routing.yml
1 string reference to YAML keys in editor.routing.yml
EditorDialogAccessTest::testEditorImageDialogAccess in core/modules/editor/tests/src/Functional/EditorDialogAccessTest.php
Test access to the editor image dialog.

File

core/modules/editor/editor.routing.yml

View source
  1. editor.filter_xss:
  2. path: '/editor/filter_xss/{filter_format}'
  3. defaults:
  4. _controller: '\Drupal\editor\EditorController::filterXss'
  5. requirements:
  6. _entity_access: 'filter_format.use'
  7. editor.field_untransformed_text:
  8. path: '/editor/{entity_type}/{entity}/{field_name}/{langcode}/{view_mode_id}'
  9. defaults:
  10. _controller: '\Drupal\editor\EditorController::getUntransformedText'
  11. options:
  12. parameters:
  13. entity:
  14. type: entity:{entity_type}
  15. requirements:
  16. _permission: 'access in-place editing'
  17. _access_quickedit_entity_field: 'TRUE'
  18. editor.image_dialog:
  19. path: '/editor/dialog/image/{editor}'
  20. defaults:
  21. _form: '\Drupal\editor\Form\EditorImageDialog'
  22. _title: 'Upload image'
  23. requirements:
  24. _entity_access: 'editor.use'
  25. editor.link_dialog:
  26. path: '/editor/dialog/link/{editor}'
  27. defaults:
  28. _form: '\Drupal\editor\Form\EditorLinkDialog'
  29. _title: 'Add link'
  30. requirements:
  31. _entity_access: 'editor.use'

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