class TestConfigType
Same name in other branches
- 9 core/modules/system/tests/modules/module_installer_config_test/src/Entity/TestConfigType.php \Drupal\module_installer_config_test\Entity\TestConfigType
- 8.9.x core/modules/system/tests/modules/module_installer_config_test/src/Entity/TestConfigType.php \Drupal\module_installer_config_test\Entity\TestConfigType
- 10 core/modules/system/tests/modules/module_installer_config_test/src/Entity/TestConfigType.php \Drupal\module_installer_config_test\Entity\TestConfigType
Defines a configuration-based entity type used for testing.
Plugin annotation
@ConfigEntityType(
id = "test_config_type",
label = @Translation("Test entity type"),
handlers = {
"list_builder" = "Drupal\Core\Entity\EntityListBuilder"
},
admin_permission = "administer modules",
config_prefix = "type",
entity_keys = {
"id" = "id",
"label" = "name"
},
config_export = {
"id",
"label",
}
)
Hierarchy
- class \Drupal\Core\Entity\EntityBase implements \Drupal\Core\Entity\EntityInterface uses \Drupal\Core\Cache\RefinableCacheableDependencyTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait
- class \Drupal\Core\Config\Entity\ConfigEntityBase extends \Drupal\Core\Entity\EntityBase implements \Drupal\Core\Config\Entity\ConfigEntityInterface uses \Drupal\Core\Plugin\PluginDependencyTrait, \Drupal\Core\Entity\SynchronizableEntityTrait
- class \Drupal\module_installer_config_test\Entity\TestConfigType extends \Drupal\Core\Config\Entity\ConfigEntityBase
- class \Drupal\Core\Config\Entity\ConfigEntityBase extends \Drupal\Core\Entity\EntityBase implements \Drupal\Core\Config\Entity\ConfigEntityInterface uses \Drupal\Core\Plugin\PluginDependencyTrait, \Drupal\Core\Entity\SynchronizableEntityTrait
Expanded class hierarchy of TestConfigType
File
-
core/
modules/ system/ tests/ modules/ module_installer_config_test/ src/ Entity/ TestConfigType.php, line 30
Namespace
Drupal\module_installer_config_test\EntityView source
class TestConfigType extends ConfigEntityBase {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.