EntityTestNoUuid.php

Same filename in other branches
  1. 8.9.x core/modules/system/tests/modules/entity_test/src/Entity/EntityTestNoUuid.php
  2. 10 core/modules/system/tests/modules/entity_test/src/Entity/EntityTestNoUuid.php
  3. 11.x core/modules/system/tests/modules/entity_test/src/Entity/EntityTestNoUuid.php

Namespace

Drupal\entity_test\Entity

File

core/modules/system/tests/modules/entity_test/src/Entity/EntityTestNoUuid.php

View source
<?php

namespace Drupal\entity_test\Entity;


/**
 * Test entity class with revisions but without UUIDs.
 *
 * @ContentEntityType(
 *   id = "entity_test_no_uuid",
 *   label = @Translation("Test entity without UUID"),
 *   handlers = {
 *     "access" = "Drupal\entity_test\EntityTestAccessControlHandler",
 *   },
 *   base_table = "entity_test_no_uuid",
 *   revision_table = "entity_test_no_uuid_revision",
 *   admin_permission = "administer entity_test content",
 *   persistent_cache = FALSE,
 *   entity_keys = {
 *     "id" = "id",
 *     "revision" = "vid",
 *     "bundle" = "type",
 *     "label" = "name",
 *     "langcode" = "langcode",
 *   },
 * )
 */
class EntityTestNoUuid extends EntityTest {

}

Classes

Title Deprecated Summary
EntityTestNoUuid Test entity class with revisions but without UUIDs.

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