LabelTestEntity.php

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

Namespace

Drupal\field_test\Plugin\Core\Entity

File

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

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

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

/**
 * Test entity class.
 *
 * @Plugin(
 *   id = "test_entity_label",
 *   label = @Translation("Test Entity label"),
 *   module = "field_test",
 *   controller_class = "Drupal\field_test\TestEntityController",
 *   form_controller_class = {
 *     "default" = "Drupal\field_test\TestEntityFormController"
 *   },
 *   field_cache = FALSE,
 *   base_table = "test_entity",
 *   revision_table = "test_entity_revision",
 *   fieldable = TRUE,
 *   entity_keys = {
 *     "id" = "ftid",
 *     "revision" = "ftvid",
 *     "bundle" = "fttype",
 *     "label" = "ftlabel"
 *   }
 * )
 */
class LabelTestEntity extends TestEntity {

}

Classes

Namesort descending Description
LabelTestEntity Test entity class.