Security update for Core, with self-updated composer
[yaffs-website] / vendor / drupal / console / templates / module / src / entity-route-provider.php.twig
1 {% extends "base/class.php.twig" %}
2
3 {% block file_path %}
4 \Drupal\{{ module }}\{{ entity_class }}HtmlRouteProvider.
5 {% endblock %}
6
7 {% block namespace_class %}
8 namespace Drupal\{{ module }};
9 {% endblock %}
10
11 {% block use_class %}
12 use Drupal\Core\Entity\EntityTypeInterface;
13 use Drupal\Core\Entity\Routing\AdminHtmlRouteProvider;
14 use Symfony\Component\Routing\Route;
15 {% endblock %}
16
17 {% block class_declaration %}
18 /**
19  * Provides routes for {{ label }} entities.
20  *
21  * @see Drupal\Core\Entity\Routing\AdminHtmlRouteProvider
22  * @see Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider
23  */
24 class {{ entity_class }}HtmlRouteProvider extends AdminHtmlRouteProvider {% endblock %}
25 {% block class_methods %}
26   /**
27    * {@inheritdoc}
28    */
29   public function getRoutes(EntityTypeInterface $entity_type) {
30     $collection = parent::getRoutes($entity_type);
31
32     // Provide your custom entity routes here.
33
34     return $collection;
35   }
36 {% endblock %}