editor.routing.yml 994 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
  options:
13 14 15
    parameters:
      entity:
        type: entity:{entity_type}
16 17
  requirements:
    _permission: 'access in-place editing'
18
    _access_quickedit_entity_field: 'TRUE'
19

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

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