class EntityTestNew
Same name and namespace in other branches
- 11.x core/modules/system/tests/modules/entity_test/src/Entity/EntityTestNew.php \Drupal\entity_test\Entity\EntityTestNew
- 10 core/modules/system/tests/modules/entity_test/src/Entity/EntityTestNew.php \Drupal\entity_test\Entity\EntityTestNew
- 9 core/modules/system/tests/modules/entity_test/src/Entity/EntityTestNew.php \Drupal\entity_test\Entity\EntityTestNew
- 8.9.x core/modules/system/tests/modules/entity_test/src/Entity/EntityTestNew.php \Drupal\entity_test\Entity\EntityTestNew
Defines the test entity class for testing definition addition.
This entity type is initially not defined. It is enabled when needed to test the related updates.
Attributes
#[ContentEntityType(id: 'entity_test_new', label: new TranslatableMarkup('New test entity'), entity_keys: [
'id' => 'id',
'uuid' => 'uuid',
'bundle' => 'type',
'label' => 'name',
'langcode' => 'langcode',
], admin_permission: 'administer entity_test content', base_table: 'entity_test_new')]
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\EntityTestNew 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 EntityTestNew
File
-
core/
modules/ system/ tests/ modules/ entity_test/ src/ Entity/ EntityTestNew.php, line 16
Namespace
Drupal\entity_test\EntityView source
class EntityTestNew extends EntityTest {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.