You are here

WorkspaceType.php in Multiversion 8

File

src/Entity/WorkspaceType.php
View source
<?php

namespace Drupal\multiversion\Entity;

use Drupal\Core\Config\Entity\ConfigEntityBundleBase;

/**
 * Defines the Workspace type entity.
 *
 * @ConfigEntityType(
 *   id = "workspace_type",
 *   label = @Translation("Workspace type"),
 *   config_prefix = "type",
 *   bundle_of = "workspace",
 *   admin_permission = "administer site configuration",
 *   entity_keys = {
 *     "id" = "id",
 *     "label" = "label",
 *     "uuid" = "uuid"
 *   },
 *   config_export = {
 *     "id",
 *     "label",
 *   }
 * )
 */
class WorkspaceType extends ConfigEntityBundleBase implements WorkspaceTypeInterface {

  /**
   * The Workspace type ID.
   *
   * @var string
   */
  protected $id;

  /**
   * The Workspace type label.
   *
   * @var string
   */
  protected $label;

}

Classes

Namesort descending Description
WorkspaceType Defines the Workspace type entity.