simple_sitemap.routing.yml 2.01 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

simple_sitemap.settings:
gbyte.co's avatar
gbyte.co committed
22
  path: '/admin/config/search/simplesitemap'
gbyte.co's avatar
gbyte.co committed
23 24 25 26 27 28
  defaults:
    _form: '\Drupal\simple_sitemap\Form\SimplesitemapSettingsForm'
    _title: 'Simple XML Sitemap Settings'
  requirements:
    _permission: 'administer sitemap settings'

29 30 31 32 33 34 35 36
simple_sitemap.settings_entities:
  path: '/admin/config/search/simplesitemap/entities'
  defaults:
    _form: '\Drupal\simple_sitemap\Form\SimplesitemapEntitiesForm'
    _title: 'Simple XML Sitemap Settings'
  requirements:
    _permission: 'administer sitemap settings'

gbyte.co's avatar
gbyte.co committed
37
simple_sitemap.settings_custom:
gbyte.co's avatar
gbyte.co committed
38
  path: '/admin/config/search/simplesitemap/custom'
gbyte.co's avatar
gbyte.co committed
39 40 41 42 43
  defaults:
    _form: '\Drupal\simple_sitemap\Form\SimplesitemapCustomLinksForm'
    _title: 'Simple XML Sitemap Settings'
  requirements:
    _permission: 'administer sitemap settings'
44 45 46 47 48 49 50 51

simple_sitemap.settings_variants:
  path: '/admin/config/search/simplesitemap/variants'
  defaults:
    _form: '\Drupal\simple_sitemap\Form\SimplesitemapVariantsForm'
    _title: 'Simple XML Sitemap Settings'
  requirements:
    _permission: 'administer sitemap settings'
52 53 54 55 56 57 58 59

simple_sitemap.sitemap_xsl:
  path: '/sitemap.xsl'
  defaults:
    _controller: '\Drupal\simple_sitemap\Controller\SimplesitemapController::getSitemapXsl'
    _title: 'Sitemap XSL'
  requirements:
    _access: 'TRUE'