class EntityTestNoLabel
Same name and namespace in other branches
- 11.x core/modules/system/tests/modules/entity_test/src/Entity/EntityTestNoLabel.php \Drupal\entity_test\Entity\EntityTestNoLabel
Test entity class.
Plugin annotation
@ContentEntityType(
id = "entity_test_no_label",
label = @Translation("Entity Test without label"),
internal = TRUE,
persistent_cache = FALSE,
base_table = "entity_test_no_label",
handlers = {
"access" = "Drupal\entity_test\EntityTestAccessControlHandler",
},
entity_keys = {
"id" = "id",
"uuid" = "uuid",
"bundle" = "type",
},
)
Hierarchy
- class \Drupal\Core\Entity\EntityBase extends \Drupal\Core\Entity\EntityInterface uses \Drupal\Core\Cache\RefinableCacheableDependencyTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait
- class \Drupal\Core\Entity\ContentEntityBase extends \Drupal\Core\Entity\IteratorAggregate, \Drupal\Core\Entity\ContentEntityInterface, \Drupal\Core\TypedData\TranslationStatusInterface uses \Drupal\Core\Entity\EntityChangesDetectionTrait, \Drupal\Core\Entity\SynchronizableEntityTrait implements \Drupal\Core\Entity\EntityBase
- class \Drupal\entity_test\Entity\EntityTest extends \Drupal\user\EntityOwnerInterface implements \Drupal\Core\Entity\ContentEntityBase
- class \Drupal\entity_test\Entity\EntityTestNoLabel implements \Drupal\entity_test\Entity\EntityTest
- class \Drupal\entity_test\Entity\EntityTest extends \Drupal\user\EntityOwnerInterface implements \Drupal\Core\Entity\ContentEntityBase
- class \Drupal\Core\Entity\ContentEntityBase extends \Drupal\Core\Entity\IteratorAggregate, \Drupal\Core\Entity\ContentEntityInterface, \Drupal\Core\TypedData\TranslationStatusInterface uses \Drupal\Core\Entity\EntityChangesDetectionTrait, \Drupal\Core\Entity\SynchronizableEntityTrait implements \Drupal\Core\Entity\EntityBase
Expanded class hierarchy of EntityTestNoLabel
2 files declare their use of EntityTestNoLabel
- EntityTestAmbiguousBundleClass.php in core/
modules/ system/ tests/ modules/ entity_test_bundle_class/ src/ Entity/ EntityTestAmbiguousBundleClass.php - InternalEntitiesTest.php in core/
modules/ jsonapi/ tests/ src/ Functional/ InternalEntitiesTest.php
File
-
core/
modules/ system/ tests/ modules/ entity_test/ src/ Entity/ EntityTestNoLabel.php, line 24
Namespace
Drupal\entity_test\EntityView source
class EntityTestNoLabel extends EntityTest {
/**
* {@inheritdoc}
*/
public function label() {
return $this->getName();
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.