EntityTestLabelCallback.php in Drupal 8
Namespace
Drupal\entity_test\EntityFile
core/modules/system/tests/modules/entity_test/src/Entity/EntityTestLabelCallback.phpView source
<?php
namespace Drupal\entity_test\Entity;
/**
* Test entity class.
*
* @ContentEntityType(
* id = "entity_test_label_callback",
* label = @Translation("Entity test label callback"),
* persistent_cache = FALSE,
* base_table = "entity_test_label_callback",
* label_callback = "entity_test_label_callback",
* entity_keys = {
* "id" = "id",
* "bundle" = "type",
* "uuid" = "uuid",
* "langcode" = "langcode",
* }
* )
*/
class EntityTestLabelCallback extends EntityTest {
}
Classes
Name | Description |
---|---|
EntityTestLabelCallback | Test entity class. |