You are here

InvoiceType.php in Drupal PM (Project Management) 4.x

File

modules/pm_invoice/src/Entity/InvoiceType.php
View source
<?php

namespace Drupal\pm_invoice\Entity;

use Drupal\Core\Config\Entity\ConfigEntityBundleBase;

/**
 * Defines the Invoice type entity.
 *
 * @ConfigEntityType(
 *   id = "pm_invoice_type",
 *   label = @Translation("Invoice type"),
 *   handlers = {
 *     "view_builder" = "Drupal\Core\Entity\EntityViewBuilder",
 *     "list_builder" = "Drupal\pm_invoice\InvoiceTypeListBuilder",
 *     "form" = {
 *       "add" = "Drupal\pm_invoice\Form\InvoiceTypeForm",
 *       "edit" = "Drupal\pm_invoice\Form\InvoiceTypeForm",
 *       "delete" = "Drupal\pm_invoice\Form\InvoiceTypeDeleteForm"
 *     },
 *     "route_provider" = {
 *       "html" = "Drupal\pm_invoice\InvoiceTypeHtmlRouteProvider",
 *     },
 *   },
 *   config_prefix = "pm_invoice_type",
 *   admin_permission = "administer site configuration",
 *   bundle_of = "pm_invoice",
 *   entity_keys = {
 *     "id" = "id",
 *     "label" = "label",
 *     "uuid" = "uuid"
 *   },
 *   links = {
 *     "canonical" = "/admin/structure/pm_invoice_type/{pm_invoice_type}",
 *     "add-form" = "/admin/structure/pm_invoice_type/add",
 *     "edit-form" = "/admin/structure/pm_invoice_type/{pm_invoice_type}/edit",
 *     "delete-form" = "/admin/structure/pm_invoice_type/{pm_invoice_type}/delete",
 *     "collection" = "/admin/structure/pm_invoice_type"
 *   }
 * )
 */
class InvoiceType extends ConfigEntityBundleBase implements InvoiceTypeInterface {

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

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

}

Classes

Namesort descending Description
InvoiceType Defines the Invoice type entity.