class EntityTestNoId

Same name in other branches
  1. 9 core/modules/system/tests/modules/entity_test/src/Entity/EntityTestNoId.php \Drupal\entity_test\Entity\EntityTestNoId
  2. 8.9.x core/modules/system/tests/modules/entity_test/src/Entity/EntityTestNoId.php \Drupal\entity_test\Entity\EntityTestNoId
  3. 11.x core/modules/system/tests/modules/entity_test/src/Entity/EntityTestNoId.php \Drupal\entity_test\Entity\EntityTestNoId

Test entity class.

Plugin annotation


@ContentEntityType(
  id = "entity_test_no_id",
  label = @Translation("Entity Test without id"),
  handlers = {
    "storage" = "Drupal\Core\Entity\ContentEntityNullStorage",
  },
  entity_keys = {
    "bundle" = "type",
  },
  admin_permission = "administer entity_test content",
  field_ui_base_route = "entity.entity_test_no_id.admin_form",
  links = {
    "add-form" = "/entity_test_no_id/add",
  },
)

Hierarchy

Expanded class hierarchy of EntityTestNoId

File

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

Namespace

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

}

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