LayoutBuilderIdsRouteSubscriber.php in Layout builder ids 8
File
src/EventSubscriber/LayoutBuilderIdsRouteSubscriber.php
View source
<?php
namespace Drupal\layout_builder_ids\EventSubscriber;
use Drupal\Core\Routing\RouteSubscriberBase;
use Symfony\Component\Routing\RouteCollection;
class LayoutBuilderIdsRouteSubscriber extends RouteSubscriberBase {
protected function alterRoutes(RouteCollection $collection) {
$configureSectionRoute = $collection
->get('layout_builder.configure_section');
if ($configureSectionRoute) {
$configureSectionRoute
->setDefault('_form', '\\Drupal\\layout_builder_ids\\Form\\ConfigureSectionForm');
}
}
}