class EntityTestMulWithBundle
Same name in other branches
- 9 core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMulWithBundle.php \Drupal\entity_test\Entity\EntityTestMulWithBundle
- 11.x 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_with_bundle}",
"edit-form" = "/entity_test_mul_with_bundle/manage/{entity_test_mul_with_bundle}/edit",
"delete-form" = "/entity_test/delete/entity_test_mul_with_bundle/{entity_test_mul_with_bundle}",
},
field_ui_base_route = "entity.entity_test_mul_with_bundle.admin_form",
)
Hierarchy
- class \Drupal\Core\Entity\EntityBase implements \Drupal\Core\Entity\EntityInterface uses \Drupal\Core\Cache\RefinableCacheableDependencyTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait
- class \Drupal\Core\Entity\ContentEntityBase extends \Drupal\Core\Entity\EntityBase implements \Drupal\Core\Entity\IteratorAggregate, \Drupal\Core\Entity\ContentEntityInterface, \Drupal\Core\TypedData\TranslationStatusInterface uses \Drupal\Core\Entity\EntityChangesDetectionTrait, \Drupal\Core\Entity\SynchronizableEntityTrait
- class \Drupal\entity_test\Entity\EntityTest extends \Drupal\Core\Entity\ContentEntityBase implements \Drupal\user\EntityOwnerInterface
- class \Drupal\entity_test\Entity\EntityTestMulWithBundle extends \Drupal\entity_test\Entity\EntityTest
- class \Drupal\entity_test\Entity\EntityTest extends \Drupal\Core\Entity\ContentEntityBase implements \Drupal\user\EntityOwnerInterface
- class \Drupal\Core\Entity\ContentEntityBase extends \Drupal\Core\Entity\EntityBase implements \Drupal\Core\Entity\IteratorAggregate, \Drupal\Core\Entity\ContentEntityInterface, \Drupal\Core\TypedData\TranslationStatusInterface uses \Drupal\Core\Entity\EntityChangesDetectionTrait, \Drupal\Core\Entity\SynchronizableEntityTrait
Expanded class hierarchy of EntityTestMulWithBundle
File
-
core/
modules/ system/ tests/ modules/ entity_test/ src/ Entity/ EntityTestMulWithBundle.php, line 47
Namespace
Drupal\entity_test\EntityView source
class EntityTestMulWithBundle extends EntityTest {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.