ViewsConfigEntityTest.php

Same filename in other branches
  1. 9 core/modules/views/tests/modules/views_config_entity_test/src/Entity/ViewsConfigEntityTest.php
  2. 8.9.x core/modules/views/tests/modules/views_config_entity_test/src/Entity/ViewsConfigEntityTest.php
  3. 10 core/modules/views/tests/modules/views_config_entity_test/src/Entity/ViewsConfigEntityTest.php

Namespace

Drupal\views_config_entity_test\Entity

File

core/modules/views/tests/modules/views_config_entity_test/src/Entity/ViewsConfigEntityTest.php

View source
<?php

declare (strict_types=1);
namespace Drupal\views_config_entity_test\Entity;

use Drupal\Core\Config\Entity\ConfigEntityBase;

/**
 * Defines a configuration-based entity type used for testing Views data.
 *
 * @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"
 *   },
 *   config_export = {
 *     "id",
 *     "label",
 *   }
 * )
 */
class ViewsConfigEntityTest extends ConfigEntityBase {

}

Classes

Title Deprecated Summary
ViewsConfigEntityTest Defines a configuration-based entity type used for testing Views data.

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