RouteSubscriber.php in Lightning Media 8
Same filename and directory in other branches
Namespace
Drupal\lightning_media\RoutingFile
src/Routing/RouteSubscriber.phpView source
<?php
namespace Drupal\lightning_media\Routing;
use Drupal\Core\Routing\RouteSubscriberBase;
use Drupal\lightning_media\Form\EntityEmbedDialog;
use Symfony\Component\Routing\RouteCollection;
class RouteSubscriber extends RouteSubscriberBase {
/**
* {@inheritdoc}
*/
protected function alterRoutes(RouteCollection $collection) {
$collection
->get('entity_embed.dialog')
->setDefault('_form', EntityEmbedDialog::class);
}
}
Classes
Name | Description |
---|---|
RouteSubscriber |