public function EntityRouteProviderInterface::getRoutes

public EntityRouteProviderInterface::getRoutes(EntityTypeInterface $entity_type)

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.

File

core/lib/Drupal/Core/Entity/Routing/EntityRouteProviderInterface.php, line 22

Class

EntityRouteProviderInterface
Allows entity types to provide routes.

Namespace

Drupal\Core\Entity\Routing

Code

public function getRoutes(EntityTypeInterface $entity_type);

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!Routing!EntityRouteProviderInterface.php/function/EntityRouteProviderInterface::getRoutes/8.1.x