class EntityTestMul
Same name and namespace in other branches
- 11.x core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMul.php \Drupal\entity_test\Entity\EntityTestMul
- 10 core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMul.php \Drupal\entity_test\Entity\EntityTestMul
- 8.9.x core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMul.php \Drupal\entity_test\Entity\EntityTestMul
Defines the test entity class.
Plugin annotation
@ContentEntityType(
id = "entity_test_mul",
label = @Translation("Test entity - 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"
},
"views_data" = "Drupal\views\EntityViewsData",
"route_provider" = {
"html" = "Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider",
},
},
base_table = "entity_test_mul",
data_table = "entity_test_mul_property_data",
admin_permission = "administer entity_test content",
translatable = TRUE,
entity_keys = {
"id" = "id",
"uuid" = "uuid",
"bundle" = "type",
"label" = "name",
"langcode" = "langcode",
},
links = {
"add-page" = "/entity_test_mul/add",
"add-form" = "/entity_test_mul/add/{type}",
"canonical" = "/entity_test_mul/manage/{entity_test_mul}",
"edit-form" = "/entity_test_mul/manage/{entity_test_mul}/edit",
"delete-form" = "/entity_test/delete/entity_test_mul/{entity_test_mul}",
},
field_ui_base_route = "entity.entity_test_mul.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 implements \Drupal\Core\Entity\IteratorAggregate, \Drupal\Core\Entity\ContentEntityInterface, \Drupal\Core\TypedData\TranslationStatusInterface uses \Drupal\Core\Entity\EntityChangesDetectionTrait, \Drupal\Core\Entity\SynchronizableEntityTrait extends \Drupal\Core\Entity\EntityBase
- class \Drupal\entity_test\Entity\EntityTest implements \Drupal\user\EntityOwnerInterface extends \Drupal\Core\Entity\ContentEntityBase
- class \Drupal\entity_test\Entity\EntityTestMul extends \Drupal\entity_test\Entity\EntityTest
- class \Drupal\entity_test\Entity\EntityTest implements \Drupal\user\EntityOwnerInterface extends \Drupal\Core\Entity\ContentEntityBase
- class \Drupal\Core\Entity\ContentEntityBase implements \Drupal\Core\Entity\IteratorAggregate, \Drupal\Core\Entity\ContentEntityInterface, \Drupal\Core\TypedData\TranslationStatusInterface uses \Drupal\Core\Entity\EntityChangesDetectionTrait, \Drupal\Core\Entity\SynchronizableEntityTrait extends \Drupal\Core\Entity\EntityBase
Expanded class hierarchy of EntityTestMul
11 files declare their use of EntityTestMul
- ContentEntityCloneTest.php in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ ContentEntityCloneTest.php - ContentTranslationEntityBundleInfoTest.php in core/
modules/ content_translation/ tests/ src/ Kernel/ ContentTranslationEntityBundleInfoTest.php - ContentTranslationLinkTagTest.php in core/
modules/ content_translation/ tests/ src/ Functional/ ContentTranslationLinkTagTest.php - EntityAddUITest.php in core/
modules/ system/ tests/ src/ Functional/ Entity/ EntityAddUITest.php - EntityReferenceRelationshipTest.php in core/
modules/ field/ tests/ src/ Kernel/ EntityReference/ Views/ EntityReferenceRelationshipTest.php
File
-
core/
modules/ system/ tests/ modules/ entity_test/ src/ Entity/ EntityTestMul.php, line 46
Namespace
Drupal\entity_test\EntityView source
class EntityTestMul extends EntityTest {
/**
* {@inheritdoc}
*/
public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {
return parent::baseFieldDefinitions($entity_type);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.