You are here

simple_sitemap.routing.yml in Simple XML sitemap 4.x

Same filename and directory in other branches
  1. 8.3 simple_sitemap.routing.yml
  2. 8.2 simple_sitemap.routing.yml

File

simple_sitemap.routing.yml
View source
  1. simple_sitemap.sitemap_default:
  2. path: '/sitemap.xml'
  3. defaults:
  4. _controller: '\Drupal\simple_sitemap\Controller\SimpleSitemapController::getSitemap'
  5. _disable_route_normalizer: 'TRUE'
  6. requirements:
  7. _access: 'TRUE'
  8. # The actual path to a variant is '/{variant}/sitemap.xml'. Because Drupal 8
  9. # cannot handle a parameter as first route argument,
  10. # Drupal\simple_sitemap\PathProcessor\PathProcessorSitemapVariant::processInbound()
  11. # is being used to catch the request and redirect to the following route.
  12. simple_sitemap.sitemap_variant:
  13. path: '/sitemaps/{variant}/sitemap.xml'
  14. defaults:
  15. _controller: '\Drupal\simple_sitemap\Controller\SimpleSitemapController::getSitemap'
  16. _disable_route_normalizer: 'TRUE'
  17. requirements:
  18. _access: 'TRUE'
  19. simple_sitemap.sitemap_xsl:
  20. path: '/sitemap.xsl'
  21. defaults:
  22. _controller: '\Drupal\simple_sitemap\Controller\SimpleSitemapController::getSitemapXsl'
  23. _title: 'Sitemap XSL'
  24. _disable_route_normalizer: 'TRUE'
  25. requirements:
  26. _access: 'TRUE'
  27. simple_sitemap.settings:
  28. path: '/admin/config/search/simplesitemap/settings'
  29. defaults:
  30. _form: '\Drupal\simple_sitemap\Form\SettingsForm'
  31. _title: 'Simple XML Sitemap'
  32. requirements:
  33. _permission: 'administer sitemap settings'
  34. simple_sitemap.entities:
  35. path: '/admin/config/search/simplesitemap/entities'
  36. defaults:
  37. _form: '\Drupal\simple_sitemap\Form\EntitiesForm'
  38. _title: 'Simple XML Sitemap'
  39. requirements:
  40. _permission: 'administer sitemap settings'
  41. simple_sitemap.custom:
  42. path: '/admin/config/search/simplesitemap/custom'
  43. defaults:
  44. _form: '\Drupal\simple_sitemap\Form\CustomLinksForm'
  45. _title: 'Simple XML Sitemap'
  46. requirements:
  47. _permission: 'administer sitemap settings'
  48. entity.simple_sitemap.collection:
  49. path: '/admin/config/search/simplesitemap'
  50. defaults:
  51. _entity_list: 'simple_sitemap'
  52. _title: 'Simple XML Sitemap'
  53. requirements:
  54. _permission: 'administer sitemap settings'
  55. simple_sitemap.add:
  56. path: '/admin/config/search/simplesitemap/variants/add'
  57. defaults:
  58. _entity_form: 'simple_sitemap.add'
  59. _title: 'Simple XML Sitemap'
  60. requirements:
  61. _permission: 'administer sitemap settings'
  62. entity.simple_sitemap.edit_form:
  63. path: '/admin/config/search/simplesitemap/variants/{simple_sitemap}'
  64. defaults:
  65. _entity_form: 'simple_sitemap.edit'
  66. _title: 'Simple XML Sitemap'
  67. requirements:
  68. _permission: 'administer sitemap settings'
  69. entity.simple_sitemap.delete_form:
  70. path: '/admin/config/search/simplesitemap/variants/{simple_sitemap}/delete'
  71. defaults:
  72. _entity_form: 'simple_sitemap.delete'
  73. _title: 'Simple XML Sitemap'
  74. requirements:
  75. _permission: 'administer sitemap settings'
  76. entity.simple_sitemap_type.collection:
  77. path: '/admin/config/search/simplesitemap/types'
  78. defaults:
  79. _entity_list: 'simple_sitemap_type'
  80. _title: 'Simple XML Sitemap'
  81. requirements:
  82. _permission: 'administer sitemap settings'
  83. simple_sitemap_type.add:
  84. path: '/admin/config/search/simplesitemap/types/add'
  85. defaults:
  86. _entity_form: 'simple_sitemap_type.add'
  87. _title: 'Simple XML Sitemap'
  88. requirements:
  89. _permission: 'administer sitemap settings'
  90. entity.simple_sitemap_type.edit_form:
  91. path: '/admin/config/search/simplesitemap/types/{simple_sitemap_type}'
  92. defaults:
  93. _entity_form: 'simple_sitemap_type.edit'
  94. _title: 'Simple XML Sitemap'
  95. requirements:
  96. _permission: 'administer sitemap settings'
  97. entity.simple_sitemap_type.delete_form:
  98. path: '/admin/config/search/simplesitemap/types/{simple_sitemap_type}/delete'
  99. defaults:
  100. _entity_form: 'simple_sitemap_type.delete'
  101. _title: 'Simple XML Sitemap'
  102. requirements:
  103. _permission: 'administer sitemap settings'