video_transcode.routing.yml in Video 8.2
modules/video_transcode/video_transcode.routing.yml
5 string references to YAML keys in video_transcode.routing.yml
- PresetDeleteForm::getCancelUrl in modules/
video_transcode/ src/ Form/ PresetDeleteForm.php - Gets the cancel URL.
- PresetFormBase::save in modules/
video_transcode/ src/ Form/ PresetFormBase.php - Overrides Drupal\Core\Entity\EntityFormController::save().
- TranscodeJobDeleteForm::getCancelUrl in modules/
video_transcode/ src/ Form/ TranscodeJobDeleteForm.php - If the delete command is canceled, return to the transcode jobs list.
- TranscodeJobDeleteForm::submitForm in modules/
video_transcode/ src/ Form/ TranscodeJobDeleteForm.php - Delete the entity and log the event. logger() replaces the watchdog.
- TranscodeJobForm::save in modules/
video_transcode/ src/ Form/ TranscodeJobForm.php - Form submission handler for the 'save' action.
File
modules/video_transcode/video_transcode.routing.ymlView source
- # Route name can be used in several places; e.g. links, redirects, and local
- # actions.
- entity.video_transcode_job.canonical:
- path: '/admin/config/media/transcode-jobs/{video_transcode_job}'
- defaults:
- # Calls the view controller, defined in the annotation of the transcode job entity
- _entity_view: 'video_transcode_job'
- _title: 'Video job content'
- requirements:
- # Calls the access controller of the entity, $operation 'view'
- _entity_access: 'video_transcode_job.view'
-
- entity.video_transcode_job.collection:
- path: '/admin/config/media/transcode-jobs/list'
- defaults:
- # Calls the list controller, defined in the annotation of the transcode job entity.
- _entity_list: 'video_transcode_job'
- _title: 'Video jobs'
- requirements:
- # Checks for permission directly.
- _permission: 'view transcode job entity'
-
- video_transcode.add_transcode_job:
- path: '/admin/config/media/transcode-jobs/add'
- defaults:
- # Calls the form.add controller, defined in the transcode job entity.
- _entity_form: video_transcode_job.add
- _title: 'Add video job'
- requirements:
- _entity_create_access: 'video_transcode_job'
-
- entity.video_transcode_job.edit_form:
- path: '/admin/config/media/transcode-jobs/{video_transcode_job}/edit'
- defaults:
- # Calls the form.edit controller, defined in the transcode job entity.
- _entity_form: video_transcode_job.edit
- _title: 'Edit video job'
- requirements:
- _entity_access: 'video_transcode_job.edit'
-
- entity.video_transcode_job.delete_form:
- path: '/admin/config/media/transcode-jobs/{video_transcode_job}/delete'
- defaults:
- # Calls the form.delete controller, defined in the transcode job entity.
- _entity_form: video_transcode_job.delete
- _title: 'Delete video job'
- requirements:
- _entity_access: 'video_transcode_job.delete'
-
- video_transcode.video_transcode_job_settings:
- path: '/admin/config/media/transcode-jobs/settings'
- defaults:
- _form: '\Drupal\video_transcode\Form\TranscodeJobSettingsForm'
- _title: 'Video job settings'
- requirements:
- _permission: 'administer transcode job entity'
-
- # video transcode preset routes
- # This is the router item for listing all entities.
- entity.video_transcode_preset.list:
- path: '/admin/config/media/transcode-preset'
- defaults:
- _entity_list: 'video_transcode_preset'
- _title: 'Presets'
- requirements:
- _permission: 'administer video transcode presets'
-
- # This is the router item for adding our entity.
- entity.video_transcode_preset.add_form:
- path: '/admin/config/media/transcode-preset/add'
- defaults:
- _title: 'Add preset'
- # Like _entity_list above, _entity_form gives the entity type ID, only this
- # time also lists the form separated by a period. Drupal looks in the
- # annotation for the entity and locates the "add" entry under "form" for
- # the form class to load.
- # @see \Drupal\Core\Entity\Enhancer\EntityRouteEnhancer
- _entity_form: video_transcode_preset.add
- requirements:
- _entity_create_access: video_transcode_preset
-
- # This is the router item for editing our entity.
- entity.video_transcode_preset.edit_form:
- # Parameters may be passed to the form via the URL path. We name the
- # parameter in the path by enclosing it in curly braces. For entity forms,
- # we include the entity ID in the path by including a parameter with the
- # same name as the entity type ID.
- path: '/admin/config/media/transcode-preset/manage/{video_transcode_preset}'
- defaults:
- _title: 'Edit preset'
- # List our add entry above, this _entity_form entry instructs Drupal to
- # read our entity type's annonation, and look for the "edit" entry under
- # "form".
- _entity_form: video_transcode_preset.edit
- requirements:
- # This uses our entity access controller.
- # @see \Drupal\Core\Entity\EntityAccessCheck
- _entity_access: video_transcode_preset.update
-
- # This is the router item for deleting an instance of our entity.
- entity.video_transcode_preset.delete_form:
- path: '/admin/config/media/transcode-preset/manage/{video_transcode_preset}/delete'
- defaults:
- _title: 'Delete preset'
- _entity_form: video_transcode_preset.delete
- requirements:
- _entity_access: video_transcode_preset.delete