You are here

image_popup.routing.yml in Simple Image Popup 2.x

Same filename and directory in other branches
  1. 8 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. image_style: NULL
  15. requirements:
  16. _permission: 'access content'
  17. image_popup.image_dialog:
  18. path: '/image_popup/dialog/image/{filter_format}'
  19. defaults:
  20. _form: '\Drupal\image_popup\Form\EditorImagePopupDialog'
  21. _title: 'Upload image'
  22. options:
  23. _theme: ajax_base_page
  24. requirements:
  25. _entity_access: 'filter_format.use'