class ConfigQueryTest

Same name and namespace in other branches
  1. 11.x core/modules/config/tests/config_test/src/Entity/ConfigQueryTest.php \Drupal\config_test\Entity\ConfigQueryTest
  2. 10 core/modules/config/tests/config_test/src/Entity/ConfigQueryTest.php \Drupal\config_test\Entity\ConfigQueryTest
  3. 8.9.x core/modules/config/tests/config_test/src/Entity/ConfigQueryTest.php \Drupal\config_test\Entity\ConfigQueryTest

Defines the ConfigQueryTest configuration entity used by the query test.

Plugin annotation


@ConfigEntityType(
  id = "config_query_test",
  label = @Translation("Test configuration for query"),
  handlers = {
    "storage" = "Drupal\config_test\ConfigTestStorage",
    "list_builder" = "Drupal\Core\Config\Entity\ConfigEntityListBuilder",
    "form" = {
      "default" = "Drupal\config_test\ConfigTestForm"
    }
  },
  config_prefix = "query",
  config_export = {
    "id",
    "label",
    "array",
    "number",
  },
  entity_keys = {
    "id" = "id",
    "label" = "label"
  }
)

Hierarchy

Expanded class hierarchy of ConfigQueryTest

See also

\Drupal\system\Tests\Entity\ConfigEntityQueryTest

1 file declares its use of ConfigQueryTest
ConfigEntityQueryTest.php in core/tests/Drupal/KernelTests/Core/Entity/ConfigEntityQueryTest.php

File

core/modules/config/tests/config_test/src/Entity/ConfigQueryTest.php, line 33

Namespace

Drupal\config_test\Entity
View source
class ConfigQueryTest extends ConfigTest {
  
  /**
   * A number used by the sort tests.
   *
   * @var int
   */
  public $number;
  
  /**
   * An array used by the wildcard tests.
   *
   * @var array
   */
  public $array = [];

}

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