class EntityTestLabel

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

Test entity class.

Plugin annotation


@ContentEntityType(
  id = "entity_test_label",
  label = @Translation("Entity Test label"),
  handlers = {
    "access" = "Drupal\entity_test\EntityTestAccessControlHandler",
    "view_builder" = "Drupal\entity_test\EntityTestViewBuilder"
  },
  base_table = "entity_test_label",
  render_cache = FALSE,
  entity_keys = {
    "uuid" = "uuid",
    "id" = "id",
    "label" = "name",
    "bundle" = "type",
    "langcode" = "langcode",
  }
)

Hierarchy

Expanded class hierarchy of EntityTestLabel

6 files declare their use of EntityTestLabel
EntityAccessControlHandlerTest.php in core/tests/Drupal/KernelTests/Core/Entity/EntityAccessControlHandlerTest.php
EntityReferenceFormatterTest.php in core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceFormatterTest.php
EntityTestAccessControlHandler.php in core/modules/system/tests/modules/entity_test/src/EntityTestAccessControlHandler.php
EntityTestLabelResourceTestBase.php in core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestLabelResourceTestBase.php
KeyValueContentEntityStorageTest.php in core/tests/Drupal/KernelTests/Core/KeyValueStore/KeyValueContentEntityStorageTest.php

... See full list

File

core/modules/system/tests/modules/entity_test/src/Entity/EntityTestLabel.php, line 26

Namespace

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

}

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