class LayoutBuilderIdsRouteSubscriber in Layout builder ids 8
Same name and namespace in other branches
- 2.0.x src/EventSubscriber/LayoutBuilderIdsRouteSubscriber.php \Drupal\layout_builder_ids\EventSubscriber\LayoutBuilderIdsRouteSubscriber
Class RouteSubscriber.
Hierarchy
- class \Drupal\Core\Routing\RouteSubscriberBase implements \Symfony\Component\EventDispatcher\EventSubscriberInterface
- class \Drupal\layout_builder_ids\EventSubscriber\LayoutBuilderIdsRouteSubscriber
Expanded class hierarchy of LayoutBuilderIdsRouteSubscriber
1 string reference to 'LayoutBuilderIdsRouteSubscriber'
1 service uses LayoutBuilderIdsRouteSubscriber
File
- src/
EventSubscriber/ LayoutBuilderIdsRouteSubscriber.php, line 11
Namespace
Drupal\layout_builder_ids\EventSubscriberView source
class LayoutBuilderIdsRouteSubscriber extends RouteSubscriberBase {
/**
* {@inheritdoc}
*/
protected function alterRoutes(RouteCollection $collection) {
$configureSectionRoute = $collection
->get('layout_builder.configure_section');
if ($configureSectionRoute) {
$configureSectionRoute
->setDefault('_form', '\\Drupal\\layout_builder_ids\\Form\\ConfigureSectionForm');
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LayoutBuilderIdsRouteSubscriber:: |
protected | function |
Alters existing routes for a specific collection. Overrides RouteSubscriberBase:: |
|
RouteSubscriberBase:: |
public static | function | Returns an array of event names this subscriber wants to listen to. | 5 |
RouteSubscriberBase:: |
public | function | Delegates the route altering to self::alterRoutes(). | 1 |