bat_unit.routing.yml in Booking and Availability Management Tools for Drupal 8
modules/bat_unit/bat_unit.routing.yml
10 string references to YAML keys in bat_unit.routing.yml
- template_preprocess_bat_type_add_list in modules/
bat_unit/ bat_unit.module - Prepares variables for list of available unit type bundles templates.
- template_preprocess_bat_unit_add_list in modules/
bat_unit/ bat_unit.module - Prepares variables for list of available unit bundles templates.
- TypeController::addPage in modules/
bat_unit/ src/ Controller/ TypeController.php - Displays add content links for available unit type bundles.
- UnitController::addPage in modules/
bat_unit/ src/ Controller/ UnitController.php - Displays add content links for available unit bundles.
- UnitDeleteForm::getCancelUrl in modules/
bat_unit/ src/ Entity/ Form/ UnitDeleteForm.php - Returns the route to go to if the user cancels the action.
File
modules/bat_unit/bat_unit.routing.ymlView source
- # UnitType routing definition
- entity.bat_unit_type.canonical:
- path: '/admin/bat/config/unit_type/{bat_unit_type}'
- defaults:
- _entity_view: 'bat_unit_type'
- _title: 'Unit type'
- requirements:
- _entity_access: 'bat_unit_type.view'
- options:
- _admin_route: TRUE
-
- entity.bat_unit_type.collection:
- path: '/admin/bat/config/unit_type'
- defaults:
- _entity_list: 'bat_unit_type'
- _title: 'Unit type list'
- requirements:
- _permission: 'view any bat_unit_type entity'
- options:
- _admin_route: TRUE
-
- entity.bat_unit_type.add_page:
- path: '/admin/bat/config/unit_type/add'
- defaults:
- _title: 'Add type'
- _controller: '\Drupal\bat_unit\Controller\TypeController::addPage'
- requirements:
- _unit_type_add_access: 'bat_unit_type'
- options:
- _admin_route: TRUE
-
- entity.bat_unit_type.add:
- path: '/admin/bat/config/unit_type/add/{type_bundle}'
- defaults:
- _controller: '\Drupal\bat_unit\Controller\TypeController::add'
- _title_callback: '\Drupal\bat_unit\Controller\TypeController::addPageTitle'
- requirements:
- _unit_type_add_access: 'bat_unit_type:{type_bundle}'
- options:
- _admin_route: TRUE
- parameters:
- type_bundle:
- type: entity:bat_type_bundle
- with_config_overrides: TRUE
-
- entity.bat_unit_type.edit_form:
- path: '/admin/bat/config/unit_type/{bat_unit_type}/edit'
- defaults:
- _entity_form: bat_unit_type.edit
- _title: 'Edit Type'
- requirements:
- _entity_access: 'bat_unit_type.update'
- options:
- _admin_route: TRUE
-
- entity.bat_unit_type.delete_form:
- path: '/admin/bat/config/unit_type/{bat_unit_type}/delete'
- defaults:
- _entity_form: bat_unit_type.delete
- _title: 'Delete Type'
- requirements:
- _entity_access: 'bat_unit_type.delete'
- options:
- _admin_route: TRUE
-
- # Unit routing definition
- entity.bat_unit.canonical:
- path: '/admin/bat/config/unit/{bat_unit}'
- defaults:
- _entity_view: 'bat_unit'
- _title: 'Unit'
- requirements:
- _entity_access: 'bat_unit.view'
- options:
- _admin_route: TRUE
-
- entity.bat_unit.collection:
- path: '/admin/bat/config/unit'
- defaults:
- _entity_list: 'bat_unit'
- _title: 'Unit list'
- requirements:
- _permission: 'view any bat_unit entity'
- options:
- _admin_route: TRUE
-
- entity.bat_unit.add_page:
- path: '/admin/bat/config/unit/add'
- defaults:
- _title: 'Add unit'
- _controller: '\Drupal\bat_unit\Controller\UnitController::addPage'
- requirements:
- _unit_add_access: 'bat_unit'
- options:
- _admin_route: TRUE
-
- entity.bat_unit.add_form:
- path: '/admin/bat/config/unit/add/{unit_bundle}'
- defaults:
- _controller: '\Drupal\bat_unit\Controller\UnitController::add'
- _title_callback: '\Drupal\bat_unit\Controller\UnitController::addPageTitle'
- requirements:
- _unit_add_access: 'bat_unit:{unit_bundle}'
- options:
- _admin_route: TRUE
- parameters:
- unit_bundle:
- type: entity:bat_unit_bundle
- with_config_overrides: TRUE
-
- entity.bat_unit.edit_form:
- path: '/admin/bat/config/unit/{bat_unit}/edit'
- defaults:
- _entity_form: bat_unit.edit
- _title: 'Edit Unit'
- requirements:
- _entity_access: 'bat_unit.update'
- options:
- _admin_route: TRUE
-
- entity.bat_unit.delete_form:
- path: '/admin/bat/config/unit/{bat_unit}/delete'
- defaults:
- _entity_form: bat_unit.delete
- _title: 'Delete Unit'
- requirements:
- _entity_access: 'bat_unit.delete'
- options:
- _admin_route: TRUE
-
- entity.bat_type_bundle.collection:
- path: '/admin/bat/config/type-bundles'
- defaults:
- _entity_list: 'bat_type_bundle'
- _title: 'Type Bundle list'
- requirements:
- _permission: 'administer bat_type_bundle entities'
- options:
- _admin_route: TRUE
-
- entity.bat_type_bundle.type_add:
- path: '/admin/bat/config/type-bundles/add'
- defaults:
- _entity_form: 'bat_type_bundle.add'
- _title: 'Add type bundle'
- requirements:
- _permission: 'administer bat_type_bundle entities'
-
- entity.bat_type_bundle.edit_form:
- path: '/admin/bat/config/type-bundles/{bat_type_bundle}/edit'
- defaults:
- _entity_form: 'bat_type_bundle.edit'
- _title: 'Edit Type bundle'
- requirements:
- _permission: 'administer bat_type_bundle entities'
- options:
- _admin_route: TRUE
-
- entity.bat_type_bundle.delete_form:
- path: '/admin/bat/config/type-bundles/{bat_type_bundle}/delete'
- defaults:
- _entity_form: 'bat_type_bundle.delete'
- _title: 'Delete'
- requirements:
- _permission: 'administer bat_type_bundle entities'
-
- entity.bat_unit_bundle.collection:
- path: '/admin/bat/config/unit-bundles'
- defaults:
- _entity_list: 'bat_unit_bundle'
- _title: 'Unit Bundle list'
- requirements:
- _permission: 'administer bat_unit_bundle entities'
- options:
- _admin_route: TRUE
-
- entity.bat_unit_bundle.type_add:
- path: '/admin/bat/config/unit-bundles/add'
- defaults:
- _entity_form: 'bat_unit_bundle.add'
- _title: 'Add unit bundle'
- requirements:
- _permission: 'administer bat_unit_bundle entities'
-
- entity.bat_unit_bundle.edit_form:
- path: '/admin/bat/config/unit-bundles/{bat_unit_bundle}/edit'
- defaults:
- _entity_form: bat_unit_bundle.edit
- _title: 'Edit Unit bundle'
- requirements:
- _permission: 'administer bat_unit_bundle entities'
- options:
- _admin_route: TRUE
-
- entity.bat_unit_bundle.delete_form:
- path: '/admin/bat/config/unit-bundles/{bat_unit_bundle}/delete'
- defaults:
- _entity_form: 'bat_unit_bundle.delete'
- _title: 'Delete'
- requirements:
- _permission: 'administer bat_unit_bundle entities'
-
- unit.multiple_delete_confirm:
- path: '/admin/bat/config/units/delete'
- defaults:
- _form: '\Drupal\bat_unit\Form\UnitDeleteMultiple'
- requirements:
- _permission: 'bypass bat_unit entities access'
-
- unit.unit_set_state_action:
- path: '/admin/bat/config/units/set-state'
- defaults:
- _form: '\Drupal\bat_unit\Form\UnitSetStateAction'
- requirements:
- _permission: 'bypass bat_unit entities access'
-
- unit.units_list:
- path: '/admin/bat/config/types/type/{bat_unit_type}/units'
- defaults:
- _controller: '\Drupal\bat_unit\Controller\UnitController::listUnits'
- requirements:
- _access: 'TRUE'
-
- entity.bat_unit.add_units:
- path: '/admin/bat/config/types/type/{bat_unit_type}/units/add'
- defaults:
- _controller: '\Drupal\bat_unit\Controller\UnitController::addUnits'
- requirements:
- _access: 'TRUE'