TestConfigType.php

Same filename and directory in other branches
  1. 9 core/modules/system/tests/modules/module_installer_config_test/src/Entity/TestConfigType.php
  2. 8.9.x core/modules/system/tests/modules/module_installer_config_test/src/Entity/TestConfigType.php
  3. 10 core/modules/system/tests/modules/module_installer_config_test/src/Entity/TestConfigType.php

Namespace

Drupal\module_installer_config_test\Entity

File

core/modules/system/tests/modules/module_installer_config_test/src/Entity/TestConfigType.php

View source
<?php

namespace Drupal\module_installer_config_test\Entity;

use Drupal\Core\Config\Entity\ConfigEntityBase;

/**
 * Defines a configuration-based entity type used for testing.
 *
 * @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",
 *   }
 * )
 */
class TestConfigType extends ConfigEntityBase {

}

Classes

Title Deprecated Summary
TestConfigType Defines a configuration-based entity type used for testing.

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