protected function RouteSubscriber::alterRoutes in Varbase Media 9.0.x
Same name and namespace in other branches
- 8.7 modules/entity_browser_generic_embed/src/Routing/RouteSubscriber.php \Drupal\entity_browser_generic_embed\Routing\RouteSubscriber::alterRoutes()
- 8.5 modules/entity_browser_generic_embed/src/Routing/RouteSubscriber.php \Drupal\entity_browser_generic_embed\Routing\RouteSubscriber::alterRoutes()
- 8.6 modules/entity_browser_generic_embed/src/Routing/RouteSubscriber.php \Drupal\entity_browser_generic_embed\Routing\RouteSubscriber::alterRoutes()
Alters existing routes for a specific collection.
Parameters
\Symfony\Component\Routing\RouteCollection $collection: The route collection for adding routes.
Overrides RouteSubscriberBase::alterRoutes
File
- modules/
entity_browser_generic_embed/ src/ Routing/ RouteSubscriber.php, line 17
Class
- RouteSubscriber
- Route Subscriber.
Namespace
Drupal\entity_browser_generic_embed\RoutingCode
protected function alterRoutes(RouteCollection $collection) {
$collection
->get('entity_embed.dialog')
->setDefault('_form', EntityEmbedDialog::class);
}