class EntityTestNew

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

Plugin annotation


@ContentEntityType(
  id = "entity_test_new",
  label = @Translation("New test entity"),
  base_table = "entity_test_new",
  entity_keys = {
    "id" = "id",
    "uuid" = "uuid",
    "bundle" = "type",
    "label" = "name",
    "langcode" = "langcode",
  }
)

Hierarchy

Expanded class hierarchy of EntityTestNew

File

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

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.