cms_content_sync-3.0.x-dev/cms_content_sync.routing.yml

cms_content_sync.routing.yml
# Content Sync - Register site or show registration details
cms_content_sync.site:
  path: '/admin/config/services/cms_content_sync/site'
  defaults:
    _controller: 'Drupal\cms_content_sync\Controller\Embed::site'
    _title: 'Content Sync - Site'
  requirements:
    _permission: 'administer cms content sync'

# Content Sync - Push or pull many content items at once
cms_content_sync.syndication:
  path: '/admin/config/services/cms_content_sync/syndication'
  defaults:
    _controller: 'Drupal\cms_content_sync\Controller\Embed::syndicationDashboard'
    _title: 'Content Sync - Updates'
  requirements:
    _permission: 'administer cms content sync'

# Content Sync - Introduction
cms_content_sync.compatibility:
  path: '/admin/config/services/cms_content_sync/compatibility'
  defaults:
    _controller: 'Drupal\cms_content_sync\Controller\Compatibility::content'
    _title: 'Content Sync - Compatibility'
  requirements:
    _permission: 'administer cms content sync'

# Content Sync - Flows
entity.cms_content_sync_flow.collection:
  path: '/admin/config/services/cms_content_sync/flow'
  defaults:
    _entity_list: 'cms_content_sync_flow'
    _title: 'Flows - Content Sync'
  requirements:
    _permission: 'administer cms content sync'

entity.cms_content_sync_flow.add_form:
  path: '/admin/config/services/cms_content_sync/flow/add'
  defaults:
    _controller: '\Drupal\cms_content_sync\Controller\Embed::flowForm'
    _title: 'Add Flow to Content Sync'
  requirements:
    _permission: 'administer cms content sync'

entity.cms_content_sync_flow.copy_remote:
  path: '/admin/config/services/cms_content_sync/flow/copy/remote'
  defaults:
    _entity_form: 'cms_content_sync_flow.copy_remote'
    _title: 'Copy from other site'
  requirements:
    _permission: 'administer cms content sync'

entity.cms_content_sync_flow.edit_form:
  path: '/admin/config/services/cms_content_sync/flow/{cms_content_sync_flow}/edit'
  defaults:
    _controller: '\Drupal\cms_content_sync\Controller\Embed::flowEditForm'
    _title: 'Edit Flow from Content Sync'
  requirements:
    _permission: 'administer cms content sync'
  options:
    parameters:
      cms_content_sync_flow:
        type: entity:cms_content_sync_flow

entity.cms_content_sync_flow.edit_form_advanced:
  path: '/admin/config/services/cms_content_sync/flow/{cms_content_sync_flow}/edit/advanced'
  defaults:
    _entity_form: 'cms_content_sync_flow.edit'
    _title: 'Edit advanced Flow from Content Sync'
  requirements:
    _permission: 'administer cms content sync'

entity.cms_content_sync_flow.delete_form:
  path: '/admin/config/services/cms_content_sync/flow/{cms_content_sync_flow}/delete'
  defaults:
    _entity_form: 'cms_content_sync_flow.delete'
    _title: 'Delete Flow from Content Sync'
  requirements:
    _permission: 'administer cms content sync'

entity.cms_content_sync_flow.export:
  path: '/admin/config/services/cms_content_sync/flow/{cms_content_sync_flow}/export'
  defaults:
    _controller: '\Drupal\cms_content_sync\Controller\FlowExport::export'
    _title: 'Export Flow'
  requirements:
    _permission: 'administer cms content sync'

entity.cms_content_sync_flow.push:
  path: '/admin/config/services/cms_content_sync/flow/{cms_content_sync_flow}/{push_mode}/push'
  defaults:
    _controller: '\Drupal\cms_content_sync\Controller\FlowPush::push'
    _title: 'Push all'
  requirements:
    _permission: 'administer cms content sync'

entity.cms_content_sync_flow.pull:
  path: '/admin/config/services/cms_content_sync/flow/{cms_content_sync_flow}/{pull_mode}/pull'
  defaults:
    _controller: '\Drupal\cms_content_sync\Controller\FlowPull::pull'
    _title: 'Pull all'
  requirements:
    _permission: 'administer cms content sync'

entity.cms_content_sync_flow.set_status:
  path: '/admin/config/services/cms_content_sync/flow/{cms_content_sync_flow}/set-status'
  defaults:
    _controller: '\Drupal\cms_content_sync\Controller\SetFlowStatus::setStatus'
    _title: 'Set Status'
  requirements:
    _permission: 'administer cms content sync'

entity.cms_content_sync_flow.pull_confirmation:
  path: '/admin/config/services/cms_content_sync/flow/{cms_content_sync_flow}/pull-confirmation'
  defaults:
    _form: '\Drupal\cms_content_sync\Form\FlowPullConfirmation'
  requirements:
    _permission: 'administer cms content sync'

entity.cms_content_sync_flow.push_confirmation:
  path: '/admin/config/services/cms_content_sync/flow/{cms_content_sync_flow}/push-confirmation'
  defaults:
    _form: '\Drupal\cms_content_sync\Form\FlowPushConfirmation'
  requirements:
    _permission: 'administer cms content sync'

# Content Sync - Pools
entity.cms_content_sync_pool.collection:
  path: '/admin/config/services/cms_content_sync/pool'
  defaults:
    _entity_list: 'cms_content_sync_pool'
    _title: 'Pools - Content Sync'
  requirements:
    _permission: 'administer cms content sync'

entity.cms_content_sync_pool.add_form:
  path: '/admin/config/services/cms_content_sync/pool/add'
  defaults:
    _entity_form: 'cms_content_sync_pool.add'
    _title: 'Add Pool to Content Sync'
  requirements:
    _permission: 'administer cms content sync'

entity.cms_content_sync_pool.edit_form:
  path: '/admin/config/services/cms_content_sync/pool/{cms_content_sync_pool}/edit'
  defaults:
    _entity_form: 'cms_content_sync_pool.edit'
    _title: 'Edit Pool from Content Sync'
  requirements:
    _permission: 'administer cms content sync'

entity.cms_content_sync_pool.delete_form:
  path: '/admin/config/services/cms_content_sync/pool/{cms_content_sync_pool}/delete'
  defaults:
    _entity_form: 'cms_content_sync_pool.delete'
    _title: 'Delete Pool from Content Sync'
  requirements:
    _permission: 'administer cms content sync'

entity.cms_content_sync_pool.export:
  path: '/admin/config/services/cms_content_sync/pool/{cms_content_sync_pool}/export'
  defaults:
    _controller: '\Drupal\cms_content_sync\Controller\PoolExport::export'
    _title: 'Export Pool'
  requirements:
    _permission: 'administer cms content sync'

cms_content_sync.cms_content_sync_pool.pool_required:
  path: '/admin/config/services/cms_content_sync/flow/pool-required'
  defaults:
    _form: '\Drupal\cms_content_sync\Form\PoolRequired'
  requirements:
    _permission: 'publish cms content sync changes'

entity.cms_content_sync_pool.reset_status_entity_confirmation:
  path: '/admin/config/services/cms_content_sync/pool/{cms_content_sync_pool}/reset-status-entity-confirmation'
  defaults:
    _form: '\Drupal\cms_content_sync\Form\ResetStatusEntityConfirmation'
  requirements:
    _permission: 'administer cms content sync'

# General settings
cms_content_sync.settings_form:
  path: '/admin/config/services/cms_content_sync/settings'
  defaults:
    _form: '\Drupal\cms_content_sync\Form\SettingsForm'
    _title: 'Settings - Content Sync'
  requirements:
    _permission: 'administer cms content sync'

# Embed Site settings / Advanced settings
cms_content_sync.advanced:
  path: '/admin/config/services/cms_content_sync/advanced'
  defaults:
    _controller: 'Drupal\cms_content_sync\Controller\Embed::siteSettings'
    _title: 'Content Sync - Advanced settings'
  requirements:
    _permission: 'administer cms content sync'

# Content Sync - Push changes
cms_content_sync.publish_changes_confirm:
  path: '/admin/cms-content-sync/publish-changes/confirm/{flow_id}/{entity_type}/{entity_id}'
  defaults:
    _controller: '\Drupal\cms_content_sync\Controller\PushChanges::pushChangesConfirm'
  requirements:
    _permission: 'publish cms content sync changes'
  options:
    parameters:
      flow_id:
        type: string
      entity_type:
        type: string
      entity_id:
        type: integer
cms_content_sync.publish_changes_confirm_deleted_translation:
  path: '/admin/cms-content-sync/publish-changes/confirm/{flow_id}/{entity_type}/{entity_id}/deleted-translation'
  defaults:
    _controller: '\Drupal\cms_content_sync\Controller\PushChanges::pushChangesConfirmDeletedTranslation'
  requirements:
    _permission: 'publish cms content sync changes'
  options:
    parameters:
      flow_id:
        type: string
      entity_type:
        type: string
      entity_id:
        type: integer
cms_content_sync.publish_changes_confirm_translation:
  path: '/admin/cms-content-sync/publish-changes/confirm/{flow_id}/{entity_type}/{entity_id}/{language}'
  defaults:
    _controller: '\Drupal\cms_content_sync\Controller\PushChanges::pushChangesConfirm'
  requirements:
    _permission: 'publish cms content sync changes'
  options:
    parameters:
      flow_id:
        type: string
      entity_type:
        type: string
      entity_id:
        type: integer
      language:
        type: string
cms_content_sync.publish_multiple_changes_confirm_redirect:
  path: '/admin/cms-content-sync/publish-multiple-changes/confirm/redirect'
  defaults:
    _controller: '\Drupal\cms_content_sync\Controller\PushChanges::pushMultipleChangesConfirmRedirect'
  requirements:
    _permission: 'publish cms content sync changes'
cms_content_sync.publish_multiple_changes_confirm:
  path: '/admin/cms-content-sync/publish-multiple-changes/confirm/{entities}'
  defaults:
    _form: '\Drupal\cms_content_sync\Form\PushChangesConfirm'
  requirements:
    _permission: 'publish cms content sync changes'
  options:
    parameters:
      entities:
        type: string
cms_content_sync.publish_changes_entities:
  path: '/cms-content-sync/publish-changes/entities'
  defaults:
    _controller: '\Drupal\cms_content_sync\Controller\PushChanges::pushChangesEntitiesList'
  requirements:
    _permission: 'access content'

entity.cms_content_sync.content:
  path: '/admin/content/pull'
  defaults:
    _controller: '\Drupal\cms_content_sync\Controller\ManualPull::content'
  requirements:
    _permission: 'access cms content sync content overview'
    _custom_access: '\Drupal\cms_content_sync\Controller\ManualPull::access'

# Show usage
cms_content_sync.show_usage:
  path: '/cms-content-sync/show-usage/{entity}/{entity_type}'
  defaults:
    _controller: '\Drupal\cms_content_sync\Controller\ShowUsage::content'
  requirements:
    _permission: 'view cms content sync syndication status'

# Node: Show current sync status
cms_content_sync.content_sync_status:
  path: '/node/{node}/content-sync'
  defaults:
    _controller: '\Drupal\cms_content_sync\Controller\Embed::nodeStatus'
    _title_callback: '\Drupal\Core\Entity\Controller\EntityController::title'
  requirements:
    _permission: 'view cms content sync syndication status'
  options:
    parameters:
      node:
        type: entity:node
# Media: Show current sync status
cms_content_sync.media_sync_status:
  path: '/media/{media}/content-sync'
  defaults:
    _controller: '\Drupal\cms_content_sync\Controller\Embed::mediaStatus'
    _title_callback: '\Drupal\Core\Entity\Controller\EntityController::title'
  requirements:
    _permission: 'view cms content sync syndication status'
  options:
    parameters:
      media:
        type: entity:media
# Block: Show current sync status
cms_content_sync.block_content_sync_status:
  path: '/admin/content/block/{block_content}/content-sync'
  defaults:
    _controller: '\Drupal\cms_content_sync\Controller\Embed::blockContentStatus'
    _title_callback: '\Drupal\Core\Entity\Controller\EntityController::title'
  requirements:
    _permission: 'view cms content sync syndication status'
  options:
    parameters:
      block_content:
        type: entity:block_content
# Taxonomy term: Show current sync status
cms_content_sync.taxonomy_term_sync_status:
  path: '/taxonomy/term/{taxonomy_term}/content-sync'
  defaults:
    _controller: '\Drupal\cms_content_sync\Controller\Embed::taxonomyTermStatus'
    _title_callback: '\Drupal\Core\Entity\Controller\EntityController::title'
  requirements:
    _permission: 'view cms content sync syndication status'
  options:
    parameters:
      taxonomy_term:
        type: entity:taxonomy_term
# Menu link content: Show current sync status
cms_content_sync.menu_link_content_sync_status:
  path: '/admin/structure/menu/item/{menu_link_content}/content-sync'
  defaults:
    _controller: '\Drupal\cms_content_sync\Controller\Embed::menuLinkContentStatus'
    _title_callback: '\Drupal\Core\Entity\Controller\EntityController::title'
  requirements:
    _permission: 'view cms content sync syndication status'
  options:
    parameters:
      menu_link_content:
        type: entity:menu_link_content
# Menu link content: Show current sync status
cms_content_sync.paragraphs_library_item_sync_status:
  path: '/admin/content/paragraphs/{paragraphs_library_item}/content-sync'
  defaults:
    _controller: '\Drupal\cms_content_sync\Controller\Embed::paragraphsLibraryItemStatus'
    _title_callback: '\Drupal\Core\Entity\Controller\EntityController::title'
  requirements:
    _permission: 'view cms content sync syndication status'
  options:
    parameters:
      paragraphs_library_item:
        type: entity:paragraphs_library_item
# Menu link content: Show current sync status
cms_content_sync.commerce_product_sync_status:
  path: '/product/{commerce_product}/content-sync'
  defaults:
    _controller: '\Drupal\cms_content_sync\Controller\Embed::commerceProductStatus'
    _title_callback: '\Drupal\Core\Entity\Controller\EntityController::title'
  requirements:
    _permission: 'view cms content sync syndication status'
  options:
    parameters:
      commerce_product:
        type: entity:commerce_product
cms_content_sync.commerce_product_variation_sync_status:
  path: '/product/{commerce_product}/variations/{commerce_product_variation}/content-sync'
  defaults:
    _controller: '\Drupal\cms_content_sync\Controller\Embed::commerceProductStatus'
    _title_callback: '\Drupal\Core\Entity\Controller\EntityController::title'
  requirements:
    _permission: 'view cms content sync syndication status'
  options:
    parameters:
      commerce_product_variation:
        type: entity:commerce_product_variation

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc