Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / system / tests / modules / entity_test / src / Entity / EntityTestMulLangcodeKey.php
1 <?php
2
3 namespace Drupal\entity_test\Entity;
4
5 /**
6  * Defines a test entity class using a custom langcode entity key.
7  *
8  * @ContentEntityType(
9  *   id = "entity_test_mul_langcode_key",
10  *   label = @Translation("Test entity - data table - langcode key"),
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\DefaultHtmlRouteProvider",
22  *     },
23  *   },
24  *   base_table = "entity_test_mul_langcode_key",
25  *   data_table = "entity_test_mul_langcode_key_field_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" = "custom_langcode_key",
34  *     "default_langcode" = "custom_default_langcode_key",
35  *   },
36  *   links = {
37  *     "add-form" = "/entity_test_mul_langcode_key/add",
38  *     "canonical" = "/entity_test_mul_langcode_key/manage/{entity_test_mul_langcode_key}",
39  *     "edit-form" = "/entity_test_mul_langcode_key/manage/{entity_test_mul_langcode_key}/edit",
40  *     "delete-form" = "/entity_test/delete/entity_test_mul_langcode_key/{entity_test_mul_langcode_key}",
41  *   },
42  *   field_ui_base_route = "entity.entity_test_mul_langcode_key.admin_form",
43  * )
44  */
45 class EntityTestMulLangcodeKey extends EntityTest {
46
47 }