class EntityTestMulWithBundle

Same name and namespace in other branches
  1. 9 core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMulWithBundle.php \Drupal\entity_test\Entity\EntityTestMulWithBundle
  2. 10 core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMulWithBundle.php \Drupal\entity_test\Entity\EntityTestMulWithBundle

Defines the multilingual test entity class with bundles.

Plugin annotation


@ContentEntityType(
  id = "entity_test_mul_with_bundle",
  label = @Translation("Test entity multilingual with bundle - data table"),
  handlers = {
    "view_builder" = "Drupal\entity_test\EntityTestViewBuilder",
    "access" = "Drupal\entity_test\EntityTestAccessControlHandler",
    "form" = {
      "default" = "Drupal\entity_test\EntityTestForm",
      "delete" = "Drupal\entity_test\EntityTestDeleteForm"
    },
    "translation" = "Drupal\content_translation\ContentTranslationHandler",
    "views_data" = "Drupal\views\EntityViewsData",
    "route_provider" = {
      "html" = "Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider",
    },
  },
  base_table = "entity_test_mul_with_bundle",
  data_table = "entity_test_mul_with_bundle_property_data",
  admin_permission = "administer entity_test content",
  translatable = TRUE,
  permission_granularity = "bundle",
  entity_keys = {
    "id" = "id",
    "uuid" = "uuid",
    "bundle" = "type",
    "label" = "name",
    "langcode" = "langcode",
  },
  bundle_entity_type = "entity_test_mul_bundle",
  links = {
    "add-page" = "/entity_test_mul_with_bundle/add",
    "add-form" = "/entity_test_mul_with_bundle/add/{type}",
    "canonical" = "/entity_test_mul_with_bundle/manage/{entity_test_mul}",
    "edit-form" = "/entity_test_mul_with_bundle/manage/{entity_test_mul}/edit",
    "delete-form" = "/entity_test/delete/entity_test_mul_with_bundle/{entity_test_mul}",
  },
  field_ui_base_route = "entity.entity_test_mul_with_bundle.admin_form",
)

Hierarchy

Expanded class hierarchy of EntityTestMulWithBundle

File

core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMulWithBundle.php, line 47

Namespace

Drupal\entity_test\Entity
View source
class EntityTestMulWithBundle extends EntityTest {

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.