class RouteSubscriber extends RouteSubscriberBase (View source)

Listens to the dynamic route events.

Properties

protected ConfigMapperManagerInterface $mapperManager

The mapper plugin discovery service.

Methods

alterRoutes(RouteCollection $collection)

Alters existing routes for a specific collection.

static 
getSubscribedEvents()

{@inheritdoc}

onAlterRoutes(RouteBuildEvent $event)

Delegates the route altering to self::alterRoutes().

__construct(ConfigMapperManagerInterface $mapper_manager)

Constructs a new RouteSubscriber.

Details

protected alterRoutes(RouteCollection $collection)

Alters existing routes for a specific collection.

Parameters

RouteCollection $collection

The route collection for adding routes.

static getSubscribedEvents()

{@inheritdoc}

onAlterRoutes(RouteBuildEvent $event)

Delegates the route altering to self::alterRoutes().

Parameters

RouteBuildEvent $event

The route build event.

__construct(ConfigMapperManagerInterface $mapper_manager)

Constructs a new RouteSubscriber.

Parameters

ConfigMapperManagerInterface $mapper_manager

The mapper plugin discovery service.