Contains Drupal\field_test\Plugin\Core\Entity\CacheableTestEntity.
<?php
/**
* @file
* Contains Drupal\field_test\Plugin\Core\Entity\CacheableTestEntity.
*/
namespace Drupal\field_test\Plugin\Core\Entity;
use Drupal\Core\Annotation\Plugin;
use Drupal\Core\Annotation\Translation;
/**
* Test entity class.
*
* @Plugin(
* id = "test_cacheable_entity",
* label = @Translation("Test Entity, cacheable"),
* module = "field_test",
* controller_class = "Drupal\field_test\TestEntityController",
* field_cache = TRUE,
* fieldable = TRUE,
* entity_keys = {
* "id" = "ftid",
* "revision" = "ftvid",
* "bundle" = "fttype"
* }
* )
*/
class CacheableTestEntity extends TestEntity {
}
Name | Description |
---|---|
CacheableTestEntity | Test entity class. |