editor.routing.yml 956 Bytes
Newer Older
1 2 3 4 5
editor.filter_xss:
  path: '/editor/filter_xss/{filter_format}'
  defaults:
    _controller: '\Drupal\editor\EditorController::filterXss'
  requirements:
6
    _entity_access: 'filter_format.use'
7

8
editor.field_untransformed_text:
9
  path: '/editor/{entity_type}/{entity}/{field_name}/{langcode}/{view_mode_id}'
10 11
  defaults:
    _controller: '\Drupal\editor\EditorController::getUntransformedText'
12 13
  options:
    _theme: ajax_base_page
14 15
  requirements:
    _permission: 'access in-place editing'
16
    _access_quickedit_entity_field: 'TRUE'
17

18
editor.image_dialog:
19
  path: '/editor/dialog/image/{filter_format}'
20 21
  defaults:
    _form: '\Drupal\editor\Form\EditorImageDialog'
22
    _title: 'Upload image'
23
  requirements:
24
    _entity_access: 'filter_format.use'
25

26
editor.link_dialog:
27
  path: '/editor/dialog/link/{filter_format}'
28 29
  defaults:
    _form: '\Drupal\editor\Form\EditorLinkDialog'
30
    _title: 'Add link'
31
  requirements:
32
    _entity_access: 'filter_format.use'