simple_sitemap.routing.yml 2.2 KB
Newer Older
1
simple_sitemap.sitemap_default:
gbyte.co's avatar
gbyte.co committed
2 3
  path: '/sitemap.xml'
  defaults:
4
    _controller: '\Drupal\simple_sitemap\Controller\SimplesitemapController::getSitemap'
5
    _disable_route_normalizer: 'TRUE'
gbyte.co's avatar
gbyte.co committed
6
  requirements:
7 8
    _access: 'TRUE'

9 10 11 12
# The actual path to a variant is '/{variant}/sitemap.xml'. Because Drupal 8
# cannot handle a parameter as first route argument,
# Drupal\simple_sitemap\PathProcessor\PathProcessorSitemapVariant::processInbound()
# is being used to catch the request and redirect to the following route.
13 14
simple_sitemap.sitemap_variant:
  path: '/sitemaps/{variant}/sitemap.xml'
15 16
  defaults:
    _controller: '\Drupal\simple_sitemap\Controller\SimplesitemapController::getSitemap'
17
    _disable_route_normalizer: 'TRUE'
18 19
  requirements:
    _access: 'TRUE'
gbyte.co's avatar
gbyte.co committed
20

21 22 23 24 25 26 27 28 29
simple_sitemap.sitemap_xsl:
  path: '/sitemap.xsl'
  defaults:
    _controller: '\Drupal\simple_sitemap\Controller\SimplesitemapController::getSitemapXsl'
    _title: 'Sitemap XSL'
  requirements:
    _access: 'TRUE'

simple_sitemap.sitemaps:
gbyte.co's avatar
gbyte.co committed
30
  path: '/admin/config/search/simplesitemap'
31 32 33 34 35 36 37 38
  defaults:
    _form: '\Drupal\simple_sitemap\Form\SimplesitemapSitemapsForm'
    _title: 'Simple XML Sitemap'
  requirements:
    _permission: 'administer sitemap settings'

simple_sitemap.settings:
  path: '/admin/config/search/simplesitemap/settings'
gbyte.co's avatar
gbyte.co committed
39 40
  defaults:
    _form: '\Drupal\simple_sitemap\Form\SimplesitemapSettingsForm'
41
    _title: 'Simple XML Sitemap'
gbyte.co's avatar
gbyte.co committed
42 43 44
  requirements:
    _permission: 'administer sitemap settings'

45
simple_sitemap.entities:
46 47 48
  path: '/admin/config/search/simplesitemap/entities'
  defaults:
    _form: '\Drupal\simple_sitemap\Form\SimplesitemapEntitiesForm'
49
    _title: 'Simple XML Sitemap'
50 51 52
  requirements:
    _permission: 'administer sitemap settings'

53
simple_sitemap.custom:
gbyte.co's avatar
gbyte.co committed
54
  path: '/admin/config/search/simplesitemap/custom'
gbyte.co's avatar
gbyte.co committed
55 56
  defaults:
    _form: '\Drupal\simple_sitemap\Form\SimplesitemapCustomLinksForm'
57
    _title: 'Simple XML Sitemap'
gbyte.co's avatar
gbyte.co committed
58 59
  requirements:
    _permission: 'administer sitemap settings'
60

61
simple_sitemap.variants:
62 63 64
  path: '/admin/config/search/simplesitemap/variants'
  defaults:
    _form: '\Drupal\simple_sitemap\Form\SimplesitemapVariantsForm'
65
    _title: 'Simple XML Sitemap'
66 67
  requirements:
    _permission: 'administer sitemap settings'