CacheableTestEntity.php

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

Namespace

Drupal\field_test\Plugin\Core\Entity

File

drupal/core/modules/field/tests/modules/field_test/lib/Drupal/field_test/Plugin/Core/Entity/CacheableTestEntity.php
View source
<?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 {

}

Classes

Namesort descending Description
CacheableTestEntity Test entity class.