image_popup.routing.yml in Simple Image Popup 8
File
image_popup.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/image_popup/render, 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\image_popup\Controller\ImagePopup")
- # and a method ("render").
- image_popup.image_popup_render:
- path: '/image_popup/render/{fid}/{image_style}'
- defaults:
- _controller: '\Drupal\image_popup\Controller\ImagePopup::render'
- requirements:
- _permission: 'access content'
- image_popup.image_popup_render_original:
- path: '/image_popup/render/{fid}'
- defaults:
- _controller: '\Drupal\image_popup\Controller\ImagePopup::render'
- requirements:
- _permission: 'access content'