media_sitemap.routing.yml in Media Sitemap 8
File
media_sitemap.routing.yml
View source
-
- # In order to to create pages it is necessary to define routes for them.
- # A route maps a URL path to a controller. It defines with what function
- # or method will be called when a URL is accessed.
- # If the user accesses http://drupal8.dev/admin/config/media/media_sitemap, the routing
- # system will look for a route with that path. In this case it will find a
- # match, and execute the _controller callback. In this case the callback is
- # defined as a classname
- # ("\Drupal\media_sitemap\Controller\MediaSitemapController")
- # and a method ("list").
- media_sitemap.media_sitemap_controller_list:
- path: 'admin/config/search/media_sitemap'
- defaults:
- _controller: '\Drupal\media_sitemap\Controller\MediaSitemapController::listMediaSitemap'
- requirements:
- _permission: 'administer media sitemap'
- # In order to to create pages it is necessary to define routes for them.
- # A route maps a URL path to a controller. It defines with what function
- # or method will be called when a URL is accessed.
- # If the user accesses http://drupal8.dev/admin/config/search/media_sitemap/generate, the routing
- # system will look for a route with that path. In this case it will find a
- # match, and execute the _controller callback. In this case the callback is
- # defined as a classname
- # ("\Drupal\media_sitemap\Controller\MediaSitemapBatchController")
- # and a method ("generate").
- media_sitemap.media_sitemap_batch_controller_generate:
- path: 'admin/config/search/media_sitemap/generate'
- defaults:
- _controller: '\Drupal\media_sitemap\Controller\MediaSitemapBatchController::generate'
- _title: 'Media Sitemap Batch Controller'
- requirements:
- _permission: 'administer media sitemap'