You are here

protected function RouteSubscriber::alterRoutes in Varbase Media 8.5

Same name and namespace in other branches
  1. 8.7 modules/entity_browser_generic_embed/src/Routing/RouteSubscriber.php \Drupal\entity_browser_generic_embed\Routing\RouteSubscriber::alterRoutes()
  2. 8.6 modules/entity_browser_generic_embed/src/Routing/RouteSubscriber.php \Drupal\entity_browser_generic_embed\Routing\RouteSubscriber::alterRoutes()
  3. 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

RouteSubscriber

Namespace

Drupal\entity_browser_generic_embed\Routing

Code

protected function alterRoutes(RouteCollection $collection) {
  $collection
    ->get('entity_embed.dialog')
    ->setDefault('_form', EntityEmbedDialog::class);
}