public function RouteSubscriber::alterRoutes in Inline responsive images 8.2
Alters existing routes for a specific collection.
Parameters
\Symfony\Component\Routing\RouteCollection $collection: The route collection for adding routes.
Overrides RouteSubscriberBase::alterRoutes
File
- src/
Routing/ RouteSubscriber.php, line 20 - Contains \Drupal\inline_responsive_images\Routing\RouteSubscriber.
Class
- RouteSubscriber
- Listens to the dynamic route events.
Namespace
Drupal\inline_responsive_images\RoutingCode
public function alterRoutes(RouteCollection $collection) {
if ($route = $collection
->get('editor.image_dialog')) {
$route
->setDefaults(array(
'_form' => '\\Drupal\\inline_responsive_images\\Form\\ResponsiveEditorImageDialog',
));
}
}