quickedit.routing.yml 1.12 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
quickedit.metadata:
  path: '/quickedit/metadata'
  defaults:
    _controller: '\Drupal\quickedit\QuickEditController::metadata'
  options:
    _theme: ajax_base_page
  requirements:
    _permission: 'access in-place editing'

quickedit.attachments:
  path: '/quickedit/attachments'
  defaults:
    _controller: '\Drupal\quickedit\QuickEditController::attachments'
  requirements:
    _permission: 'access in-place editing'

quickedit.field_form:
  path: '/quickedit/form/{entity_type}/{entity}/{field_name}/{langcode}/{view_mode_id}'
  defaults:
    _controller: '\Drupal\quickedit\QuickEditController::fieldForm'
  options:
    _theme: ajax_base_page
23 24 25
    parameters:
      entity:
        type: entity:{entity_type}
26 27 28 29 30 31 32 33 34 35
  requirements:
    _permission: 'access in-place editing'
    _access_quickedit_entity_field: 'TRUE'

quickedit.entity_save:
  path: '/quickedit/entity/{entity_type}/{entity}'
  defaults:
    _controller: '\Drupal\quickedit\QuickEditController::entitySave'
  requirements:
    _permission: 'access in-place editing'
36 37 38 39 40
    _entity_access: 'entity.update'
  options:
    parameters:
      entity:
        type: entity:{entity_type}