Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / system / tests / modules / entity_test / src / Entity / EntityTestAdminRoutes.php
1 <?php
2
3 namespace Drupal\entity_test\Entity;
4
5 /**
6  * Defines a test entity type with administrative routes.
7  *
8  * @ContentEntityType(
9  *   id = "entity_test_admin_routes",
10  *   label = @Translation("Test entity - admin routes"),
11  *   handlers = {
12  *     "view_builder" = "Drupal\entity_test\EntityTestViewBuilder",
13  *     "access" = "Drupal\entity_test\EntityTestAccessControlHandler",
14  *     "form" = {
15  *       "default" = "Drupal\entity_test\EntityTestForm",
16  *       "delete" = "Drupal\entity_test\EntityTestDeleteForm"
17  *     },
18  *     "translation" = "Drupal\content_translation\ContentTranslationHandler",
19  *     "views_data" = "Drupal\views\EntityViewsData",
20  *     "route_provider" = {
21  *       "html" = "Drupal\Core\Entity\Routing\AdminHtmlRouteProvider",
22  *     },
23  *   },
24  *   base_table = "entity_test_admin_routes",
25  *   data_table = "entity_test_admin_routes_property_data",
26  *   admin_permission = "administer entity_test content",
27  *   translatable = TRUE,
28  *   entity_keys = {
29  *     "id" = "id",
30  *     "uuid" = "uuid",
31  *     "bundle" = "type",
32  *     "label" = "name",
33  *     "langcode" = "langcode",
34  *   },
35  *   links = {
36  *     "canonical" = "/entity_test_admin_routes/manage/{entity_test_admin_routes}",
37  *     "edit-form" = "/entity_test_admin_routes/manage/{entity_test_admin_routes}/edit",
38  *     "delete-form" = "/entity_test/delete/entity_test_admin_routes/{entity_test_admin_routes}",
39  *   },
40  * )
41  */
42 class EntityTestAdminRoutes extends EntityTest {
43
44 }