BundleTestEntity.php 804 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
<?php

/**
 * @file
 * Contains Drupal\field_test\Plugin\Core\Entity\BundleTestEntity.
 */

namespace Drupal\field_test\Plugin\Core\Entity;

10
use Drupal\Core\Entity\Annotation\EntityType;
11 12 13 14 15
use Drupal\Core\Annotation\Translation;

/**
 * Test entity class.
 *
16
 * @EntityType(
17 18 19
 *   id = "test_entity_bundle",
 *   label = @Translation("Test Entity with a specified bundle"),
 *   module = "field_test",
20 21 22 23 24
 *   controllers = {
 *     "storage" = "Drupal\field_test\TestEntityController",
 *     "form" = {
 *       "default" = "Drupal\field_test\TestEntityFormController"
 *     }
25 26 27 28 29 30 31 32 33 34 35 36 37
 *   },
 *   field_cache = FALSE,
 *   base_table = "test_entity_bundle",
 *   fieldable = TRUE,
 *   entity_keys = {
 *     "id" = "ftid",
 *     "bundle" = "fttype"
 *   }
 * )
 */
class BundleTestEntity extends TestEntity {

}