filebrowser.routing.yml in Filebrowser 8
File
filebrowser.routing.yml
View source
- filebrowser.download:
- #TODO if {fid} is proper wildcard
- path: '/filebrowser/download/{fid}'
- defaults:
- _controller: '\Drupal\filebrowser\Controller\FilebrowserController::pageDownload'
- _title: 'Filebrowser'
- requirements:
- _permission: 'FILEBROWSER_DOWNLOAD'
-
- filebrowser.delete:
- path: '/filebrowser/delete/{fid}'
- defaults:
- _controler: '\Drupal\filebrowser\Controller\FilebrowserController::pageDelete'
- _title: 'Filebrowser'
- reguiremements:
- _permission: 'FILEBROWSER_DELETE_FILE'
-
- filebrowser.metadata:
- path: '/filebrowser/metadata/{fid}'
- defaults:
- _form: '\Drupal\filebrowser\Form\FilebrowserFormMetaData'
- _title: 'Manage metada of your listing'
- requirements:
- #TODO set correct permission
- _permission: 'FILEBROWSER_DELETE_FILE'
-
- filebrowser.thumbnails:
- #TODO if {fid} is proper wildcard
- path: '/filebrowser/thumbnails/'
- defaults:
- _controler: '\Drupal\filebrowser\Controller\FilebrowserController::updateThumbnails'
- requirements:
- #TODO set correct permission
- _permission: 'FILEBROWSER_DELETE_FILE'
-
- # ----- routes for Filebrowser entity ---
- filebrowser.view:
- path: '/filebrowser/{filebrowser}'
- defaults:
- _entity_view: 'filebrowser'
- _title: 'Foo Bar Content'
- requirements:
- _permission: 'view_filebrowser'
- filebrowser.list:
- path: '/filebrowser/list'
- defaults:
- _entity_list: 'filebrowser'
- _title: 'Foo Bar Content List'
- requirements:
- _permission: 'view_filebrowser'
- filebrowser.add:
- path: '/filebrowser/add'
- defaults:
- _entity_form: filebrowser.add
- _title: 'Add foo bar Content'
- requirements:
- _permission: 'add_filebrowser'
- filebrowser.edit:
- path: '/filebrowser/{filebrowser}/edit'
- defaults:
- _entity_form: filebrowser.edit
- _title: 'Edit foo bar content'
- requirements:
- _permission: 'edit_filebrowser'
- filebrowser.delete:
- path: '/filebrowser/{filebrowser}/delete'
- defaults:
- _entity_form: filebrowser.delete
- _title: 'Delete foo bar Content '
- requirements:
- _permission: 'delete_filebrowser'
- filebrowser.settings:
- path: 'admin/structure/filebrowser'
- defaults:
- _form: '\Drupal\filebrowser\Entity\Form\FilebrowserSettingsForm'
- _title: 'Filebrowser Settings'
- requirements:
- _permission: 'admin_filebrowser'