ds_extras.switch_view_mode:
  path: 'ds-switch-view-mode/{entityType}/{entityId}/{viewMode}'
  defaults:
    _controller: '\Drupal\ds_extras\Controller\DsExtrasController::switchViewMode'
  requirements:
    _permission: 'access content'
    _custom_access: '\Drupal\ds_extras\Controller\DsExtrasController::accessSwitchViewMode'
