class EntityTestLabel
Same name in other branches
- 8.9.x core/modules/system/tests/modules/entity_test/src/Entity/EntityTestLabel.php \Drupal\entity_test\Entity\EntityTestLabel
- 10 core/modules/system/tests/modules/entity_test/src/Entity/EntityTestLabel.php \Drupal\entity_test\Entity\EntityTestLabel
- 11.x core/modules/system/tests/modules/entity_test/src/Entity/EntityTestLabel.php \Drupal\entity_test\Entity\EntityTestLabel
Test entity class.
Plugin annotation
@ContentEntityType(
id = "entity_test_label",
label = @Translation("Entity Test label"),
handlers = {
"access" = "Drupal\entity_test\EntityTestAccessControlHandler",
"view_builder" = "Drupal\entity_test\EntityTestViewBuilder"
},
base_table = "entity_test_label",
render_cache = FALSE,
entity_keys = {
"uuid" = "uuid",
"id" = "id",
"label" = "name",
"bundle" = "type",
"langcode" = "langcode",
}
)
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\EntityTestLabel 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 EntityTestLabel
6 files declare their use of EntityTestLabel
- EntityAccessControlHandlerTest.php in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityAccessControlHandlerTest.php - EntityReferenceFormatterTest.php in core/
modules/ field/ tests/ src/ Kernel/ EntityReference/ EntityReferenceFormatterTest.php - EntityTestAccessControlHandler.php in core/
modules/ system/ tests/ modules/ entity_test/ src/ EntityTestAccessControlHandler.php - EntityTestLabelResourceTestBase.php in core/
modules/ system/ tests/ modules/ entity_test/ tests/ src/ Functional/ Rest/ EntityTestLabelResourceTestBase.php - KeyValueContentEntityStorageTest.php in core/
tests/ Drupal/ KernelTests/ Core/ KeyValueStore/ KeyValueContentEntityStorageTest.php
File
-
core/
modules/ system/ tests/ modules/ entity_test/ src/ Entity/ EntityTestLabel.php, line 26
Namespace
Drupal\entity_test\EntityView source
class EntityTestLabel extends EntityTest {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.