class EntityRouteProviderSubscriber implements EventSubscriberInterface (View source)

Ensures that routes can be provided by entity types.

Properties

protected EntityTypeManagerInterface $entityTypeManager

The entity type manager service.

Methods

__construct(EntityTypeManagerInterface $entity_type_manager)

Constructs a new EntityRouteProviderSubscriber instance.

onDynamicRouteEvent(RouteBuildEvent $event)

Provides routes on route rebuild time.

static 
getSubscribedEvents()

{@inheritdoc}

Details

__construct(EntityTypeManagerInterface $entity_type_manager)

Constructs a new EntityRouteProviderSubscriber instance.

Parameters

EntityTypeManagerInterface $entity_type_manager

The entity type manager service.

onDynamicRouteEvent(RouteBuildEvent $event)

Provides routes on route rebuild time.

Parameters

RouteBuildEvent $event

The route build event.

static getSubscribedEvents()

{@inheritdoc}