cincopa-8.x-1.x-dev/cincopa.routing.yml
cincopa.routing.yml
# @file
# Routing file for the Cincopa module.
# 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").
cincopa.gallery_dialog:
path: '/cincopa/dialog/gallery/{filter_format}'
defaults:
_controller: '\Drupal\cincopa\Controller\CincopaGallery::content'
_title: 'Insert Media from Cincopa'
options:
_theme: ajax_base_page
requirements:
_permission: 'access content'
