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

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

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