Version 1
[yaffs-website] / web / core / modules / system / tests / modules / entity_test / src / Entity / EntityTestNoLabel.php
1 <?php
2
3 namespace Drupal\entity_test\Entity;
4
5 /**
6  * Test entity class.
7  *
8  * @ContentEntityType(
9  *   id = "entity_test_no_label",
10  *   label = @Translation("Entity Test without label"),
11  *   persistent_cache = FALSE,
12  *   base_table = "entity_test_no_label",
13  *   entity_keys = {
14  *     "id" = "id",
15  *     "bundle" = "type"
16  *   }
17  * )
18  */
19 class EntityTestNoLabel extends EntityTest {
20
21   /**
22    * {@inheritdoc}
23    */
24   public function label() {
25     return $this->getName();
26   }
27
28 }