You are here

image_popup.routing.yml in Simple Image Popup 8

Same filename and directory in other branches
  1. 2.x image_popup.routing.yml

File

image_popup.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/image_popup/render, 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\image_popup\Controller\ImagePopup")
  9. # and a method ("render").
  10. image_popup.image_popup_render:
  11. path: '/image_popup/render/{fid}/{image_style}'
  12. defaults:
  13. _controller: '\Drupal\image_popup\Controller\ImagePopup::render'
  14. requirements:
  15. _permission: 'access content'
  16. image_popup.image_popup_render_original:
  17. path: '/image_popup/render/{fid}'
  18. defaults:
  19. _controller: '\Drupal\image_popup\Controller\ImagePopup::render'
  20. requirements:
  21. _permission: 'access content'