You are here

media_bulk_upload.routing.yml in Media Bulk Upload 8

File

media_bulk_upload.routing.yml
View source
  1. media_bulk_upload.upload_form:
  2. path: '/media/bulk-upload/{media_bulk_config}'
  3. defaults:
  4. _form: '\Drupal\media_bulk_upload\Form\MediaBulkUploadForm'
  5. _title: 'Multiple upload'
  6. requirements:
  7. _custom_access: '\Drupal\media_bulk_upload\Controller\MediaBulkUploadController::accessForm'
  8. options:
  9. _admin_route: TRUE
  10. parameters:
  11. media_bulk_config:
  12. type: entity:media_bulk_config
  13. media_bulk_upload.list:
  14. path: '/media/bulk-upload'
  15. defaults:
  16. _title: 'Bulk upload media'
  17. _controller: '\Drupal\media_bulk_upload\Controller\MediaBulkUploadController::addLinksList'
  18. requirements:
  19. _custom_access: '\Drupal\media_bulk_upload\Controller\MediaBulkUploadController::accessList'
  20. options:
  21. _admin_route: TRUE
  22. entity.media_bulk_config.collection:
  23. path: '/admin/config/media/media-bulk-config'
  24. defaults:
  25. _entity_list: 'media_bulk_config'
  26. _title: 'Bulk upload media'
  27. requirements:
  28. _permission: 'administer media_bulk_upload configuration'
  29. options:
  30. _admin_route: TRUE
  31. media_bulk_upload.add:
  32. path: '/admin/config/media/bulk-upload/add'
  33. defaults:
  34. _entity_form: media_bulk_config.add
  35. _title: 'Add media bulk upload configuration'
  36. requirements:
  37. _permission: 'administer media_bulk_upload configuration'
  38. options:
  39. _admin_route: TRUE