class RouteSubscriber extends RouteSubscriberBase (View source)

User route subscriber.

Properties

protected EntityTypeManagerInterface $entityTypeManager

The entity type manager 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(EntityTypeManagerInterface $entity_type_manager)

Constructs a RouteSubscriber object.

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(EntityTypeManagerInterface $entity_type_manager)

Constructs a RouteSubscriber object.

Parameters

EntityTypeManagerInterface $entity_type_manager

The entity type manager service.