class NodeRouteProvider implements EntityRouteProviderInterface (View source)

Provides routes for nodes.

Methods

RouteCollection|Route[]
getRoutes(EntityTypeInterface $entity_type)

Provides routes for entities.

Details

RouteCollection|Route[] getRoutes(EntityTypeInterface $entity_type)

Provides routes for entities.

Parameters

EntityTypeInterface $entity_type

The entity type

Return Value

RouteCollection|Route[]

Returns a route collection or an array of routes keyed by name, like route_callbacks inside 'routing.yml' files.