image_popup.routing.yml in Simple Image Popup 2.x
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'
- image_style: NULL
- requirements:
- _permission: 'access content'
- image_popup.image_dialog:
- path: '/image_popup/dialog/image/{filter_format}'
- defaults:
- _form: '\Drupal\image_popup\Form\EditorImagePopupDialog'
- _title: 'Upload image'
- options:
- _theme: ajax_base_page
- requirements:
- _entity_access: 'filter_format.use'