class EntityTestNew

Same name and namespace in other branches
  1. 11.x core/modules/system/tests/modules/entity_test/src/Entity/EntityTestNew.php \Drupal\entity_test\Entity\EntityTestNew
  2. 10 core/modules/system/tests/modules/entity_test/src/Entity/EntityTestNew.php \Drupal\entity_test\Entity\EntityTestNew
  3. 9 core/modules/system/tests/modules/entity_test/src/Entity/EntityTestNew.php \Drupal\entity_test\Entity\EntityTestNew
  4. 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

Expanded class hierarchy of EntityTestNew

File

core/modules/system/tests/modules/entity_test/src/Entity/EntityTestNew.php, line 16

Namespace

Drupal\entity_test\Entity
View source
class EntityTestNew extends EntityTest {

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.