You are here

protected function DefaultRouteSubscriber::enhanceDefaultRoutes in Form mode manager 8

Enhance existing entity operation routes (add_page, add_form, edit_form).

Parameters

\Symfony\Component\Routing\RouteCollection $collection: The route collection to retrieve parent entity routes.

string $entity_type_id: The ID of the entity type.

1 call to DefaultRouteSubscriber::enhanceDefaultRoutes()
DefaultRouteSubscriber::alterRoutes in src/Routing/EventSubscriber/DefaultRouteSubscriber.php
Alters existing routes for a specific collection.

File

src/Routing/EventSubscriber/DefaultRouteSubscriber.php, line 73

Class

DefaultRouteSubscriber
Subscriber for form_mode_manager routes.

Namespace

Drupal\form_mode_manager\Routing\EventSubscriber

Code

protected function enhanceDefaultRoutes(RouteCollection $collection, $entity_type_id) {
  $this
    ->enhanceDefaultAddPageRoutes($collection, $entity_type_id);
  $this
    ->enhanceDefaultAddRoutes($collection, $entity_type_id);
  $this
    ->enhanceDefaultEditRoutes($collection, $entity_type_id);
}