You are here

media_sitemap.routing.yml in Media Sitemap 8

File

media_sitemap.routing.yml
View source
  1. # In order to to create pages it is necessary to define routes for them.
  2. # A route maps a URL path to a controller. It defines with what function
  3. # or method will be called when a URL is accessed.
  4. # If the user accesses http://drupal8.dev/admin/config/media/media_sitemap, the routing
  5. # system will look for a route with that path. In this case it will find a
  6. # match, and execute the _controller callback. In this case the callback is
  7. # defined as a classname
  8. # ("\Drupal\media_sitemap\Controller\MediaSitemapController")
  9. # and a method ("list").
  10. media_sitemap.media_sitemap_controller_list:
  11. path: 'admin/config/search/media_sitemap'
  12. defaults:
  13. _controller: '\Drupal\media_sitemap\Controller\MediaSitemapController::listMediaSitemap'
  14. requirements:
  15. _permission: 'administer media sitemap'
  16. # In order to to create pages it is necessary to define routes for them.
  17. # A route maps a URL path to a controller. It defines with what function
  18. # or method will be called when a URL is accessed.
  19. # If the user accesses http://drupal8.dev/admin/config/search/media_sitemap/generate, the routing
  20. # system will look for a route with that path. In this case it will find a
  21. # match, and execute the _controller callback. In this case the callback is
  22. # defined as a classname
  23. # ("\Drupal\media_sitemap\Controller\MediaSitemapBatchController")
  24. # and a method ("generate").
  25. media_sitemap.media_sitemap_batch_controller_generate:
  26. path: 'admin/config/search/media_sitemap/generate'
  27. defaults:
  28. _controller: '\Drupal\media_sitemap\Controller\MediaSitemapBatchController::generate'
  29. _title: 'Media Sitemap Batch Controller'
  30. requirements:
  31. _permission: 'administer media sitemap'