You are here

httpbl.routing.yml in http:BL 8

File

httpbl.routing.yml
View source
  1. httpbl.admin_config:
  2. path: '/admin/config/people/httpbl'
  3. defaults:
  4. _form: '\Drupal\httpbl\Form\HttpblConfigForm'
  5. _title: 'Http:BL Config'
  6. requirements:
  7. _permission: 'admin httpbl configuration'
  8. httpbl.whitelist_challenge_form:
  9. path: '/httpbl/whitelist'
  10. defaults:
  11. _form: '\Drupal\httpbl\Form\HttpblWhitelistForm'
  12. _title: 'White-list Request Challenge'
  13. requirements:
  14. _permission: 'access content'
  15. httpbl.multiple_ban_confirm:
  16. path: '/admin/config/people/host/blacklist-and-ban'
  17. defaults:
  18. _form: '\Drupal\httpbl\Form\HostMultipleBanConfirm'
  19. requirements:
  20. _permission: 'admin httpbl hosts'
  21. httpbl.multiple_delete_confirm:
  22. path: '/admin/config/people/host/delete'
  23. defaults:
  24. _form: '\Drupal\httpbl\Form\HostMultipleDeleteConfirm'
  25. requirements:
  26. _permission: 'admin httpbl hosts'
  27. httpbl.multiple_greylist_confirm:
  28. path: '/admin/config/people/host/greylist-and-unban'
  29. defaults:
  30. _form: '\Drupal\httpbl\Form\HostMultipleGreylistConfirm'
  31. requirements:
  32. _permission: 'admin httpbl hosts'
  33. httpbl.multiple_refresh_confirm:
  34. path: '/admin/config/people/host/refresh-expiry'
  35. defaults:
  36. _form: '\Drupal\httpbl\Form\HostMultipleRefreshConfirm'
  37. requirements:
  38. _permission: 'admin httpbl hosts'
  39. httpbl.multiple_unban_blacklisted_confirm:
  40. path: '/admin/config/people/host/unban-blacklisted'
  41. defaults:
  42. _form: '\Drupal\httpbl\Form\HostMultipleUnbanConfirm'
  43. requirements:
  44. _permission: 'admin httpbl hosts'
  45. httpbl.multiple_whitelist_confirm:
  46. path: '/admin/config/people/host/whitelist-and-unban'
  47. defaults:
  48. _form: '\Drupal\httpbl\Form\HostMultipleWhitelistConfirm'
  49. requirements:
  50. _permission: 'admin httpbl hosts'
  51. httpbl.banned_hosts:
  52. path: '/admin/config/people/host/list/banned'
  53. defaults:
  54. _title: 'Http:BL Banned Hosts'
  55. requirements:
  56. _permission: 'admin httpbl hosts'
  57. _permission: 'ban IP addresses'
  58. httpbl.black_hosts:
  59. path: '/admin/config/people/host/list/blacklist'
  60. defaults:
  61. _title: 'Http:BL Blacklist'
  62. requirements:
  63. _permission: 'admin httpbl hosts'
  64. httpbl.grey_hosts:
  65. path: '/admin/config/people/host/list/greylist'
  66. defaults:
  67. _title: 'Http:BL Greylist'
  68. requirements:
  69. _permission: 'admin httpbl hosts'
  70. httpbl.safe_hosts:
  71. path: '/admin/config/people/host/list/safe'
  72. defaults:
  73. _title: 'Http:BL Whitelist'
  74. requirements:
  75. _permission: 'admin httpbl hosts'
  76. # Override route for uninstalling host entities.
  77. httpbl.prepare_modules_entity_uninstall:
  78. path: '/admin/modules/uninstall/entity/{entity_type_id}'
  79. defaults:
  80. _form: '\Drupal\httpbl\Form\PrepareHttpblEntityUninstallForm'
  81. _title_callback: '\Drupal\system\Form\PrepareModulesEntityUninstallForm::formTitle'
  82. requirements:
  83. _permission: 'administer modules'
  84. # Route name can be used in several places; e.g. links, redirects, and local
  85. # actions.
  86. entity.host.canonical:
  87. path: '/admin/config/people/host/{host}'
  88. defaults:
  89. # Calls the view controller, defined in the annotation of the host entity
  90. _entity_view: 'host'
  91. _title: 'Evaluated Host'
  92. requirements:
  93. # Calls the access controller of the entity, $operation 'view'
  94. _entity_access: 'host.view'
  95. entity.host.collection:
  96. path: '/admin/config/people/host/list'
  97. defaults:
  98. # Calls the list controller, defined in the annotation of the host entity.
  99. _entity_list: 'host'
  100. _title: 'Http:BL Evaluated Hosts'
  101. requirements:
  102. # Checks for permission directly.
  103. _permission: 'view host entity'
  104. httpbl.host_add:
  105. path: 'admin/config/people/host/add'
  106. defaults:
  107. # Calls the form.add controller, defined in the host entity.
  108. _entity_form: host.add
  109. _title: 'Add Host'
  110. requirements:
  111. _entity_create_access: 'host'
  112. entity.host.edit_form:
  113. path: 'admin/config/people/host/{host}/edit'
  114. defaults:
  115. # Calls the form.edit controller, defined in the host entity.
  116. _entity_form: host.edit
  117. _title: 'Edit Host'
  118. requirements:
  119. _entity_access: 'host.edit'
  120. entity.host.delete_form:
  121. path: 'admin/config/people/host/{host}/delete'
  122. defaults:
  123. # Calls the form.delete controller, defined in the host entity.
  124. _entity_form: host.delete
  125. _title: 'Delete Host'
  126. requirements:
  127. _entity_access: 'host.delete'
  128. httpbl.host_settings:
  129. path: 'admin/structure/httpbl/host_settings'
  130. defaults:
  131. _form: '\Drupal\httpbl\Form\HostSettingsForm'
  132. _title: 'Host Settings'
  133. requirements:
  134. _permission: 'admin httpbl hosts'
  135. # Views reports...
  136. # The formula for the route is $url = Url::fromRoute('view.VIEW_MACHINE_NAME.PAGE_MACHINENAME');
  137. # @see http://drupal.stackexchange.com/questions/223405/how-to-get-route-name-of-a-view-page
  138. # Reports are now history. Use the Evaluated Hosts admin View.