You are here

EntityTestNoUuid.php in Drupal 8

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

Namesort descending Description
EntityTestNoUuid Test entity class with revisions but without UUIDs.