This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
drupalcampbristol/core/modules/quickedit/quickedit.routing.yml

41 lines
1.1 KiB
YAML
Raw Normal View History

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
parameters:
entity:
type: entity:{entity_type}
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'
_entity_access: 'entity.update'
options:
parameters:
entity:
type: entity:{entity_type}