Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * @ContentEntityType(
- * id = "test_entity",
- * label = @Translation("label"),
- * bundle_label = @Translation("Testing entity type"),
- * handlers = {
- * "storage" = "Drupaltest_entityTestEntityStorage",
- * "storage_schema" = "Drupaltest_entityTestEntityStorageSchema",
- * "view_builder" = "DrupalCoreEntityEntityViewBuilder",
- * "access" = "Drupaltest_entityTestEntityAccessControlHandler",
- * "form" = {
- * "default" = "Drupaltest_entityTestEntityForm",
- * "edit" = "Drupaltest_entityTestEntityForm",
- * "delete" = "DrupalCoreEntityContentEntityDeleteForm"
- * },
- * "route_provider" = { "html" = "Drupaltest_entityEntityTestEntityRouteProvider" },
- * "list_builder" = "Drupaltest_entityTestEntityListBuilder",
- * },
- * translatable = FALSE,
- * entity_keys = { "id" = "id", "bundle" = "type", "label" = "test", "uuid" = "uuid" },
- * bundle_entity_type = "test_entity_type",
- * field_ui_base_route = "entity.test_entity_type.edit_form",
- * common_reference_target = TRUE,
- * permission_granularity = "bundle",
- * links = {
- * "canonical" = "/admin/testing/my-entity/{test_entity}",
- * "delete-form" = "/admin/testing/my-entity/{test_entity}/delete",
- * "edit-form" = "/admin/testing/my-entity/{test_entity}/edit",
- * "collection" = "/admin/testing/my-entity",
- * }
- * )
- */
- /* links = {
- * "canonical" = "/admin/testing/my-entity/{test_entity}",
- * "delete-form" = "/admin/testing/my-entity/{test_entity}/delete",
- * "edit-form" = "/admin/testing/my-entity/{test_entity}/edit",
- * "collection" = "/admin/testing/my-entity",
- */ }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement