You are here

public function EntityRouteProviderInterface::getRoutes in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Entity/Routing/EntityRouteProviderInterface.php \Drupal\Core\Entity\Routing\EntityRouteProviderInterface::getRoutes()

Provides routes for entities.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type

Return value

\Symfony\Component\Routing\RouteCollection|\Symfony\Component\Routing\Route[] Returns a route collection or an array of routes keyed by name, like route_callbacks inside 'routing.yml' files.

3 methods override EntityRouteProviderInterface::getRoutes()
DefaultHtmlRouteProvider::getRoutes in core/lib/Drupal/Core/Entity/Routing/DefaultHtmlRouteProvider.php
Provides routes for entities.
NodeRouteProvider::getRoutes in core/modules/node/src/Entity/NodeRouteProvider.php
Provides routes for entities.
UserRouteProvider::getRoutes in core/modules/user/src/Entity/UserRouteProvider.php
Provides routes for entities.

File

core/lib/Drupal/Core/Entity/Routing/EntityRouteProviderInterface.php, line 27
Contains \Drupal\Core\Entity\Routing\EntityRouteProviderInterface.

Class

EntityRouteProviderInterface
Allows entity types to provide routes.

Namespace

Drupal\Core\Entity\Routing

Code

public function getRoutes(EntityTypeInterface $entity_type);