BundleTestEntity.php

Contains Drupal\field_test\Plugin\Core\Entity\BundleTestEntity.

Namespace

Drupal\field_test\Plugin\Core\Entity

File

drupal/core/modules/field/tests/modules/field_test/lib/Drupal/field_test/Plugin/Core/Entity/BundleTestEntity.php
View source
<?php

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

use Drupal\Core\Annotation\Plugin;
use Drupal\Core\Annotation\Translation;

/**
 * Test entity class.
 *
 * @Plugin(
 *   id = "test_entity_bundle",
 *   label = @Translation("Test Entity with a specified bundle"),
 *   module = "field_test",
 *   controller_class = "Drupal\field_test\TestEntityController",
 *   form_controller_class = {
 *     "default" = "Drupal\field_test\TestEntityFormController"
 *   },
 *   field_cache = FALSE,
 *   base_table = "test_entity_bundle",
 *   fieldable = TRUE,
 *   entity_keys = {
 *     "id" = "ftid",
 *     "bundle" = "fttype"
 *   }
 * )
 */
class BundleTestEntity extends TestEntity {

}

Classes

Namesort descending Description
BundleTestEntity Test entity class.