BundleKeyTestEntity.php

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

Namespace

Drupal\field_test\Plugin\Core\Entity

File

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

/**
 * @file
 * Contains Drupal\field_test\Plugin\Core\Entity\BundleKeyTestEntity.
 */
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_key",
 *   label = @Translation("Test Entity with a bundle key"),
 *   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_key",
 *   fieldable = TRUE,
 *   entity_keys = {
 *     "id" = "ftid",
 *     "bundle" = "fttype"
 *   }
 * )
 */
class BundleKeyTestEntity extends TestEntity {

}

Classes

Namesort descending Description
BundleKeyTestEntity Test entity class.