media.routing.yml 667 B

123456789101112131415161718192021
  1. entity.media.multiple_delete_confirm:
  2. path: '/admin/content/media/delete'
  3. defaults:
  4. _form: '\Drupal\media\Form\MediaDeleteMultipleConfirmForm'
  5. requirements:
  6. _permission: 'administer media+delete any media'
  7. entity.media.revision:
  8. path: '/media/{media}/revisions/{media_revision}/view'
  9. defaults:
  10. _controller: '\Drupal\Core\Entity\Controller\EntityViewController::viewRevision'
  11. _title_callback: '\Drupal\Core\Entity\Controller\EntityController::title'
  12. options:
  13. parameters:
  14. media:
  15. type: entity:media
  16. media_revision:
  17. type: entity_revision:media
  18. requirements:
  19. _access_media_revision: 'view'
  20. media: \d+