simple_sitemap.routing.yml 1.72 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'
gbyte.co's avatar
gbyte.co committed
5
  requirements:
6 7
    _access: 'TRUE'

8 9 10 11
# 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.
12 13
simple_sitemap.sitemap_variant:
  path: '/sitemaps/{variant}/sitemap.xml'
14 15 16 17
  defaults:
    _controller: '\Drupal\simple_sitemap\Controller\SimplesitemapController::getSitemap'
  requirements:
    _access: 'TRUE'
gbyte.co's avatar
gbyte.co committed
18 19

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

27 28 29 30 31 32 33 34
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
35
simple_sitemap.settings_custom:
gbyte.co's avatar
gbyte.co committed
36
  path: '/admin/config/search/simplesitemap/custom'
gbyte.co's avatar
gbyte.co committed
37 38 39 40 41
  defaults:
    _form: '\Drupal\simple_sitemap\Form\SimplesitemapCustomLinksForm'
    _title: 'Simple XML Sitemap Settings'
  requirements:
    _permission: 'administer sitemap settings'
42 43 44 45 46 47 48 49

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'