class EntityTestCache
Same name in other branches
- 9 core/modules/system/tests/modules/entity_test/src/Entity/EntityTestCache.php \Drupal\entity_test\Entity\EntityTestCache
- 8.9.x core/modules/system/tests/modules/entity_test/src/Entity/EntityTestCache.php \Drupal\entity_test\Entity\EntityTestCache
- 11.x core/modules/system/tests/modules/entity_test/src/Entity/EntityTestCache.php \Drupal\entity_test\Entity\EntityTestCache
Defines the test entity class.
Plugin annotation
@ContentEntityType(
id = "entity_test_cache",
label = @Translation("Test entity with field cache"),
handlers = {
"access" = "Drupal\entity_test\EntityTestAccessControlHandler",
"form" = {
"default" = "Drupal\entity_test\EntityTestForm"
},
},
base_table = "entity_test_cache",
entity_keys = {
"id" = "id",
"uuid" = "uuid",
"bundle" = "type"
}
)
Hierarchy
- class \Drupal\Core\Entity\EntityBase implements \Drupal\Core\Entity\EntityInterface uses \Drupal\Core\Cache\RefinableCacheableDependencyTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait
- class \Drupal\Core\Entity\ContentEntityBase extends \Drupal\Core\Entity\EntityBase implements \Drupal\Core\Entity\IteratorAggregate, \Drupal\Core\Entity\ContentEntityInterface, \Drupal\Core\TypedData\TranslationStatusInterface uses \Drupal\Core\Entity\EntityChangesDetectionTrait, \Drupal\Core\Entity\SynchronizableEntityTrait
- class \Drupal\entity_test\Entity\EntityTest extends \Drupal\Core\Entity\ContentEntityBase implements \Drupal\user\EntityOwnerInterface
- class \Drupal\entity_test\Entity\EntityTestCache extends \Drupal\entity_test\Entity\EntityTest
- class \Drupal\entity_test\Entity\EntityTest extends \Drupal\Core\Entity\ContentEntityBase implements \Drupal\user\EntityOwnerInterface
- class \Drupal\Core\Entity\ContentEntityBase extends \Drupal\Core\Entity\EntityBase implements \Drupal\Core\Entity\IteratorAggregate, \Drupal\Core\Entity\ContentEntityInterface, \Drupal\Core\TypedData\TranslationStatusInterface uses \Drupal\Core\Entity\EntityChangesDetectionTrait, \Drupal\Core\Entity\SynchronizableEntityTrait
Expanded class hierarchy of EntityTestCache
File
-
core/
modules/ system/ tests/ modules/ entity_test/ src/ Entity/ EntityTestCache.php, line 25
Namespace
Drupal\entity_test\EntityView source
class EntityTestCache extends EntityTest {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.