EntityTestLabelCallback.php

Contains \Drupal\entity_test\Plugin\Core\Entity\EntityTestLabelCallback.

Namespace

Drupal\entity_test\Plugin\Core\Entity

File

drupal/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Plugin/Core/Entity/EntityTestLabelCallback.php
View source
<?php

/**
 * @file
 * Contains \Drupal\entity_test\Plugin\Core\Entity\EntityTestLabelCallback.
 */
namespace Drupal\entity_test\Plugin\Core\Entity;

use Drupal\Core\Entity\Annotation\EntityType;
use Drupal\Core\Annotation\Translation;

/**
 * Test entity class.
 *
 * @EntityType(
 *   id = "entity_test_label_callback",
 *   label = @Translation("Entity test label callback"),
 *   module = "entity_test",
 *   controllers = {
 *     "storage" = "Drupal\entity_test\EntityTestStorageController"
 *   },
 *   field_cache = FALSE,
 *   base_table = "entity_test",
 *   revision_table = "entity_test_revision",
 *   label_callback = "entity_test_label_callback",
 *   fieldable = TRUE,
 *   entity_keys = {
 *     "id" = "id",
 *     "bundle" = "type"
 *   }
 * )
 */
class EntityTestLabelCallback extends EntityTest {

}

Classes

Namesort descending Description
EntityTestLabelCallback Test entity class.