You are here

db_maintenance.routing.yml in DB Maintenance 8

Same filename and directory in other branches
  1. 8.2 db_maintenance.routing.yml
  2. 2.0.x db_maintenance.routing.yml

File

db_maintenance.routing.yml
View source
  1. # In order to to create pages it is necessary to define routes for them. A route
  2. # maps a URL path to a controller. It defines with what function or method will
  3. # be called when a URL is accessed.
  4. ### Admin Overview
  5. # Overview page returns a menu-block with links that where
  6. # rules.ui.overview is declared as parent.
  7. db_maintenance.overview:
  8. path: '/admin/config/system/db_maintenance'
  9. defaults:
  10. _controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
  11. _title: 'DB Maintenance'
  12. requirements:
  13. _permission: 'administer db maintenance'
  14. db_maintenance.optimize_tables_page:
  15. path: '/db_maintenance'
  16. defaults:
  17. _controller: '\Drupal\db_maintenance\Controller\DefaultController::optimizeTables'
  18. requirements:
  19. _permission: 'administer db maintenance'
  20. _csrf_token: 'TRUE'
  21. db_maintenance.admin_settings:
  22. path: '/admin/config/system/db_maintenance'
  23. defaults:
  24. _title: 'DB Maintenance'
  25. _form: '\Drupal\db_maintenance\Form\DbMaintenanceAdminSettings'
  26. requirements:
  27. _permission: 'administer db maintenance'