706994aa880e25b6ef90c7eeba6d0101e3a2b2b0
[yaffs-website] / EntityRouteProviderInterface.php
1 <?php
2
3 namespace Drupal\Core\Entity\Routing;
4
5 use Drupal\Core\Entity\EntityTypeInterface;
6
7 /**
8  * Allows entity types to provide routes.
9  */
10 interface EntityRouteProviderInterface {
11
12   /**
13    * Provides routes for entities.
14    *
15    * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
16    *   The entity type
17    *
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.
21    */
22   public function getRoutes(EntityTypeInterface $entity_type);
23
24 }