interface EntityRouteProviderInterface in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Entity/Routing/EntityRouteProviderInterface.php \Drupal\Core\Entity\Routing\EntityRouteProviderInterface
Allows entity types to provide routes.
Hierarchy
- interface \Drupal\Core\Entity\Routing\EntityRouteProviderInterface
Expanded class hierarchy of EntityRouteProviderInterface
All classes that implement EntityRouteProviderInterface
2 files declare their use of EntityRouteProviderInterface
- NodeRouteProvider.php in core/
modules/ node/ src/ Entity/ NodeRouteProvider.php - Contains \Drupal\node\Entity\NodeRouteProvider.
- UserRouteProvider.php in core/
modules/ user/ src/ Entity/ UserRouteProvider.php - Contains \Drupal\user\Entity\UserRouteProvider.
File
- core/
lib/ Drupal/ Core/ Entity/ Routing/ EntityRouteProviderInterface.php, line 15 - Contains \Drupal\Core\Entity\Routing\EntityRouteProviderInterface.
Namespace
Drupal\Core\Entity\RoutingView source
interface EntityRouteProviderInterface {
/**
* Provides routes for entities.
*
* @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
* The entity type
*
* @return \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.
*/
public function getRoutes(EntityTypeInterface $entity_type);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityRouteProviderInterface:: |
public | function | Provides routes for entities. | 3 |