arch-8.x-1.x-dev/modules/product/modules/downloadable/arch_downloadable_product.routing.yml
modules/product/modules/downloadable/arch_downloadable_product.routing.yml
arch_downloadable_product.download:
path: '/product/{product_id}/{file_uuid}/{user_uuid}'
defaults:
_controller: 'Drupal\arch_downloadable_product\Controller\ProductDownloadController::download'
requirements:
_custom_access: '\Drupal\arch_downloadable_product\Controller\ProductDownloadController::downloadAccess'
arch_downloadable_product.user.purchased_files:
path: '/user/{user}/downloads'
defaults:
_controller: 'Drupal\arch_downloadable_product\Controller\PurchasedFiles::fileList'
requirements:
_custom_access: '\Drupal\arch_downloadable_product\Controller\PurchasedFiles::fileListAccess'
user: \d+
options:
parameters:
user:
type: entity:user
