3 namespace Drupal\Core\Entity\Routing;
5 use Drupal\Core\Entity\EntityTypeInterface;
8 * Allows entity types to provide routes.
10 interface EntityRouteProviderInterface {
13 * Provides routes for entities.
15 * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
18 * @return \Symfony\Component\Routing\RouteCollection|\Symfony\Component\Routing\Route[]
19 * Returns a route collection or an array of routes keyed by name, like
20 * route_callbacks inside 'routing.yml' files.
22 public function getRoutes(EntityTypeInterface $entity_type);