protected function RouteSubscriber::alterRoutes in Varbase Media 8.5
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.6 modules/entity_browser_generic_embed/src/Routing/RouteSubscriber.php \Drupal\entity_browser_generic_embed\Routing\RouteSubscriber::alterRoutes()
- 9.0.x 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 14
Class
Namespace
Drupal\entity_browser_generic_embed\RoutingCode
protected function alterRoutes(RouteCollection $collection) {
$collection
->get('entity_embed.dialog')
->setDefault('_form', EntityEmbedDialog::class);
}