class ViewsConfigEntityTest

Same name in other branches
  1. 8.9.x core/modules/views/tests/modules/views_config_entity_test/src/Entity/ViewsConfigEntityTest.php \Drupal\views_config_entity_test\Entity\ViewsConfigEntityTest
  2. 10 core/modules/views/tests/modules/views_config_entity_test/src/Entity/ViewsConfigEntityTest.php \Drupal\views_config_entity_test\Entity\ViewsConfigEntityTest
  3. 11.x core/modules/views/tests/modules/views_config_entity_test/src/Entity/ViewsConfigEntityTest.php \Drupal\views_config_entity_test\Entity\ViewsConfigEntityTest

Defines a configuration-based entity type used for testing Views data.

Plugin annotation


@ConfigEntityType(
  id = "views_config_entity_test",
  label = @Translation("Test config entity type with Views data"),
  handlers = {
    "list_builder" = "Drupal\Core\Entity\EntityListBuilder",
    "views_data" = "Drupal\views_config_entity_test\ViewsConfigEntityTestViewsData"
  },
  admin_permission = "administer modules",
  config_prefix = "type",
  entity_keys = {
    "id" = "id",
    "label" = "name"
  }
)

Hierarchy

Expanded class hierarchy of ViewsConfigEntityTest

File

core/modules/views/tests/modules/views_config_entity_test/src/Entity/ViewsConfigEntityTest.php, line 25

Namespace

Drupal\views_config_entity_test\Entity
View source
class ViewsConfigEntityTest extends ConfigEntityBase {

}

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