You are here

protected function RouteSubscriber::alterRoutes in Lightning Media 8.2

Same name and namespace in other branches
  1. 8.4 src/Routing/RouteSubscriber.php \Drupal\lightning_media\Routing\RouteSubscriber::alterRoutes()
  2. 8 src/Routing/RouteSubscriber.php \Drupal\lightning_media\Routing\RouteSubscriber::alterRoutes()
  3. 8.3 src/Routing/RouteSubscriber.php \Drupal\lightning_media\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

src/Routing/RouteSubscriber.php, line 14

Class

RouteSubscriber

Namespace

Drupal\lightning_media\Routing

Code

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