ban.routing.yml

Same filename in other branches
  1. 8.9.x core/modules/ban/ban.routing.yml
  2. 10 core/modules/ban/ban.routing.yml
  3. 11.x core/modules/ban/ban.routing.yml
core/modules/ban/ban.routing.yml
4 string references to YAML keys in ban.routing.yml
BanAdmin::buildForm in core/modules/ban/src/Form/BanAdmin.php
BanAdmin::submitForm in core/modules/ban/src/Form/BanAdmin.php
Form submission handler.
BanDelete::getCancelUrl in core/modules/ban/src/Form/BanDelete.php
Returns the route to go to if the user cancels the action.
ban_help in core/modules/ban/ban.module
Implements hook_help().

File

core/modules/ban/ban.routing.yml

View source
  1. ban.admin_page:
  2. path: '/admin/config/people/ban/{default_ip}'
  3. defaults:
  4. _form: '\Drupal\ban\Form\BanAdmin'
  5. _title: 'IP address bans'
  6. default_ip: ''
  7. requirements:
  8. _permission: 'ban IP addresses'
  9. ban.delete:
  10. path: '/admin/config/people/ban/delete/{ban_id}'
  11. defaults:
  12. _form: '\Drupal\ban\Form\BanDelete'
  13. _title: 'Delete IP address'
  14. requirements:
  15. _permission: 'ban IP addresses'

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.