sparql_entity_storage-8.x-1.0-alpha8/tests/modules/sparql_serialization_test/src/Entity/TestSimpleSparqlType.php

tests/modules/sparql_serialization_test/src/Entity/TestSimpleSparqlType.php
<?php

declare(strict_types=1);

namespace Drupal\sparql_serialization_test\Entity;

use Drupal\Core\Config\Entity\ConfigEntityBundleBase;

/**
 * Defines a bundle entity.
 *
 * @ConfigEntityType(
 *   id = "simple_sparql_type_test",
 *   label = @Translation("Testing bundle entity"),
 *   config_prefix = "type",
 *   bundle_of = "simple_sparql_test",
 *   entity_keys = {
 *     "id" = "id",
 *     "label" = "name",
 *   },
 *   config_export = {
 *     "id",
 *     "name",
 *   },
 * )
 */
class TestSimpleSparqlType extends ConfigEntityBundleBase {

  /**
   * The entity ID.
   *
   * @var string
   *   The bundle ID.
   */
  protected string $id;

  /**
   * The human readable name of the entity.
   *
   * @var string
   *    Human readable name
   */
  protected string $name;

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc