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);
doc_Drupal
2016-10-29 09:07:33
Comments
Leave a Comment

Please login to continue.