You are here

OpenApiTestEntityType.php in OpenAPI 8.2

Same filename and directory in other branches
  1. 8 tests/modules/openapi_test/src/Entity/OpenApiTestEntityType.php

File

tests/modules/openapi_test/src/Entity/OpenApiTestEntityType.php
View source
<?php

namespace Drupal\openapi_test\Entity;

use Drupal\Core\Config\Entity\ConfigEntityBundleBase;

/**
 * Defines the OpenApi Test Entity type entity.
 *
 * @ConfigEntityType(
 *   id = "openapi_test_entity_type",
 *   label = @Translation("OpenApi Test Entity type"),
 *   config_prefix = "openapi_test_entity_type",
 *   admin_permission = "administer site configuration",
 *   bundle_of = "openapi_test_entity",
 *   entity_keys = {
 *     "id" = "id",
 *     "label" = "label",
 *     "uuid" = "uuid"
 *   },
 *   config_export = {
 *     "id",
 *     "label",
 *   },
 * )
 */
class OpenApiTestEntityType extends ConfigEntityBundleBase implements OpenApiTestEntityTypeInterface {

  /**
   * The OpenApi Test Entity type ID.
   *
   * @var string
   */
  protected $id;

  /**
   * The OpenApi Test Entity type label.
   *
   * @var string
   */
  protected $label;

}

Classes

Namesort descending Description
OpenApiTestEntityType Defines the OpenApi Test Entity type entity.