You are here

tome_static.routing.yml in Tome 8

modules/tome_static/tome_static.routing.yml

File

modules/tome_static/tome_static.routing.yml
View source
  1. tome_static.main:
  2. path: '/admin/config/tome/static'
  3. defaults:
  4. _controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
  5. _title: 'Tome Static'
  6. requirements:
  7. _permission: 'use tome static'
  8. tome_static.generate:
  9. path: '/admin/config/tome/static/generate'
  10. defaults:
  11. _form: 'Drupal\tome_static\Form\StaticGeneratorForm'
  12. _title: 'Generate static site'
  13. requirements:
  14. _permission: 'use tome static'
  15. tome_static.download_page:
  16. path: '/admin/config/tome/static/download'
  17. defaults:
  18. _controller: 'Drupal\tome_static\Controller\StaticDownloadController::build'
  19. _title: 'Download static site'
  20. requirements:
  21. _permission: 'use tome static'
  22. tome_static.download:
  23. path: '/admin/config/tome/static/download-archive'
  24. defaults:
  25. _controller: 'Drupal\tome_static\Controller\StaticDownloadController::download'
  26. _title: 'Download export'
  27. requirements:
  28. _permission: 'use tome static'
  29. _custom_access: 'Drupal\tome_static\Controller\StaticDownloadController::downloadAccess'
  30. tome_static.preview_form:
  31. path: '/admin/config/tome/static/preview'
  32. defaults:
  33. _form: 'Drupal\tome_static\Form\StaticPreviewForm'
  34. _title: 'Preview static site'
  35. requirements:
  36. _permission: 'use tome static'
  37. tome_static.preview_exit:
  38. path: '/admin/config/tome/static/preview-exit'
  39. defaults:
  40. _controller: 'Drupal\tome_static\Controller\StaticPreviewController::build'
  41. _title: 'Exit static site preview'
  42. requirements:
  43. _permission: 'use tome static'