EntityTestLabel.php

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

Namespace

Drupal\entity_test\Entity

File

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

View source
<?php

namespace Drupal\entity_test\Entity;


/**
 * Test entity class.
 *
 * @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",
 *   }
 * )
 */
class EntityTestLabel extends EntityTest {

}

Classes

Title Deprecated Summary
EntityTestLabel Test entity class.

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