You are here

class LayoutBuilderIdsRouteSubscriber in Layout builder ids 8

Same name and namespace in other branches
  1. 2.0.x src/EventSubscriber/LayoutBuilderIdsRouteSubscriber.php \Drupal\layout_builder_ids\EventSubscriber\LayoutBuilderIdsRouteSubscriber

Class RouteSubscriber.

Hierarchy

Expanded class hierarchy of LayoutBuilderIdsRouteSubscriber

1 string reference to 'LayoutBuilderIdsRouteSubscriber'
layout_builder_ids.services.yml in ./layout_builder_ids.services.yml
layout_builder_ids.services.yml
1 service uses LayoutBuilderIdsRouteSubscriber
layout_builder_ids.route_subscriber in ./layout_builder_ids.services.yml
Drupal\layout_builder_ids\EventSubscriber\LayoutBuilderIdsRouteSubscriber

File

src/EventSubscriber/LayoutBuilderIdsRouteSubscriber.php, line 11

Namespace

Drupal\layout_builder_ids\EventSubscriber
View 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

Namesort descending Modifiers Type Description Overrides
LayoutBuilderIdsRouteSubscriber::alterRoutes protected function Alters existing routes for a specific collection. Overrides RouteSubscriberBase::alterRoutes
RouteSubscriberBase::getSubscribedEvents public static function Returns an array of event names this subscriber wants to listen to. 5
RouteSubscriberBase::onAlterRoutes public function Delegates the route altering to self::alterRoutes(). 1