View source
- httpbl.admin_config:
- path: '/admin/config/people/httpbl'
- defaults:
- _form: '\Drupal\httpbl\Form\HttpblConfigForm'
- _title: 'Http:BL Config'
- requirements:
- _permission: 'admin httpbl configuration'
-
- httpbl.whitelist_challenge_form:
- path: '/httpbl/whitelist'
- defaults:
- _form: '\Drupal\httpbl\Form\HttpblWhitelistForm'
- _title: 'White-list Request Challenge'
- requirements:
- _permission: 'access content'
-
- httpbl.multiple_ban_confirm:
- path: '/admin/config/people/host/blacklist-and-ban'
- defaults:
- _form: '\Drupal\httpbl\Form\HostMultipleBanConfirm'
- requirements:
- _permission: 'admin httpbl hosts'
-
- httpbl.multiple_delete_confirm:
- path: '/admin/config/people/host/delete'
- defaults:
- _form: '\Drupal\httpbl\Form\HostMultipleDeleteConfirm'
- requirements:
- _permission: 'admin httpbl hosts'
-
- httpbl.multiple_greylist_confirm:
- path: '/admin/config/people/host/greylist-and-unban'
- defaults:
- _form: '\Drupal\httpbl\Form\HostMultipleGreylistConfirm'
- requirements:
- _permission: 'admin httpbl hosts'
-
- httpbl.multiple_refresh_confirm:
- path: '/admin/config/people/host/refresh-expiry'
- defaults:
- _form: '\Drupal\httpbl\Form\HostMultipleRefreshConfirm'
- requirements:
- _permission: 'admin httpbl hosts'
-
- httpbl.multiple_unban_blacklisted_confirm:
- path: '/admin/config/people/host/unban-blacklisted'
- defaults:
- _form: '\Drupal\httpbl\Form\HostMultipleUnbanConfirm'
- requirements:
- _permission: 'admin httpbl hosts'
-
- httpbl.multiple_whitelist_confirm:
- path: '/admin/config/people/host/whitelist-and-unban'
- defaults:
- _form: '\Drupal\httpbl\Form\HostMultipleWhitelistConfirm'
- requirements:
- _permission: 'admin httpbl hosts'
-
- httpbl.banned_hosts:
- path: '/admin/config/people/host/list/banned'
- defaults:
- _title: 'Http:BL Banned Hosts'
- requirements:
- _permission: 'admin httpbl hosts'
- _permission: 'ban IP addresses'
-
- httpbl.black_hosts:
- path: '/admin/config/people/host/list/blacklist'
- defaults:
- _title: 'Http:BL Blacklist'
- requirements:
- _permission: 'admin httpbl hosts'
-
- httpbl.grey_hosts:
- path: '/admin/config/people/host/list/greylist'
- defaults:
- _title: 'Http:BL Greylist'
- requirements:
- _permission: 'admin httpbl hosts'
-
- httpbl.safe_hosts:
- path: '/admin/config/people/host/list/safe'
- defaults:
- _title: 'Http:BL Whitelist'
- requirements:
- _permission: 'admin httpbl hosts'
-
- # Override route for uninstalling host entities.
- httpbl.prepare_modules_entity_uninstall:
- path: '/admin/modules/uninstall/entity/{entity_type_id}'
- defaults:
- _form: '\Drupal\httpbl\Form\PrepareHttpblEntityUninstallForm'
- _title_callback: '\Drupal\system\Form\PrepareModulesEntityUninstallForm::formTitle'
- requirements:
- _permission: 'administer modules'
-
- # Route name can be used in several places; e.g. links, redirects, and local
- # actions.
- entity.host.canonical:
- path: '/admin/config/people/host/{host}'
- defaults:
- # Calls the view controller, defined in the annotation of the host entity
- _entity_view: 'host'
- _title: 'Evaluated Host'
- requirements:
- # Calls the access controller of the entity, $operation 'view'
- _entity_access: 'host.view'
-
- entity.host.collection:
- path: '/admin/config/people/host/list'
- defaults:
- # Calls the list controller, defined in the annotation of the host entity.
- _entity_list: 'host'
- _title: 'Http:BL Evaluated Hosts'
- requirements:
- # Checks for permission directly.
- _permission: 'view host entity'
-
- httpbl.host_add:
- path: 'admin/config/people/host/add'
- defaults:
- # Calls the form.add controller, defined in the host entity.
- _entity_form: host.add
- _title: 'Add Host'
- requirements:
- _entity_create_access: 'host'
-
- entity.host.edit_form:
- path: 'admin/config/people/host/{host}/edit'
- defaults:
- # Calls the form.edit controller, defined in the host entity.
- _entity_form: host.edit
- _title: 'Edit Host'
- requirements:
- _entity_access: 'host.edit'
-
- entity.host.delete_form:
- path: 'admin/config/people/host/{host}/delete'
- defaults:
- # Calls the form.delete controller, defined in the host entity.
- _entity_form: host.delete
- _title: 'Delete Host'
- requirements:
- _entity_access: 'host.delete'
-
- httpbl.host_settings:
- path: 'admin/structure/httpbl/host_settings'
- defaults:
- _form: '\Drupal\httpbl\Form\HostSettingsForm'
- _title: 'Host Settings'
- requirements:
- _permission: 'admin httpbl hosts'
-
- # Views reports...
- # The formula for the route is $url = Url::fromRoute('view.VIEW_MACHINE_NAME.PAGE_MACHINENAME');
- # @see http://drupal.stackexchange.com/questions/223405/how-to-get-route-name-of-a-view-page
- # Reports are now history. Use the Evaluated Hosts admin View.