class TestConfigType

Same name and namespace in other branches
  1. 9 core/modules/system/tests/modules/module_installer_config_test/src/Entity/TestConfigType.php \Drupal\module_installer_config_test\Entity\TestConfigType
  2. 10 core/modules/system/tests/modules/module_installer_config_test/src/Entity/TestConfigType.php \Drupal\module_installer_config_test\Entity\TestConfigType
  3. 11.x 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"
  }
)

Hierarchy

Expanded class hierarchy of TestConfigType

File

core/modules/system/tests/modules/module_installer_config_test/src/Entity/TestConfigType.php, line 24

Namespace

Drupal\module_installer_config_test\Entity
View source
class TestConfigType extends ConfigEntityBase {

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.