ExpenseType.php in Drupal PM (Project Management) 4.x
Namespace
Drupal\pm_expense\EntityFile
modules/pm_expense/src/Entity/ExpenseType.phpView source
<?php
namespace Drupal\pm_expense\Entity;
use Drupal\Core\Config\Entity\ConfigEntityBundleBase;
/**
* Defines the Expense type entity.
*
* @ConfigEntityType(
* id = "pm_expense_type",
* label = @Translation("Expense type"),
* handlers = {
* "view_builder" = "Drupal\Core\Entity\EntityViewBuilder",
* "list_builder" = "Drupal\pm_expense\ExpenseTypeListBuilder",
* "form" = {
* "add" = "Drupal\pm_expense\Form\ExpenseTypeForm",
* "edit" = "Drupal\pm_expense\Form\ExpenseTypeForm",
* "delete" = "Drupal\pm_expense\Form\ExpenseTypeDeleteForm"
* },
* "route_provider" = {
* "html" = "Drupal\pm_expense\ExpenseTypeHtmlRouteProvider",
* },
* },
* config_prefix = "pm_expense_type",
* admin_permission = "administer site configuration",
* bundle_of = "pm_expense",
* entity_keys = {
* "id" = "id",
* "label" = "label",
* "uuid" = "uuid"
* },
* links = {
* "canonical" = "/admin/structure/pm_expense_type/{pm_expense_type}",
* "add-form" = "/admin/structure/pm_expense_type/add",
* "edit-form" = "/admin/structure/pm_expense_type/{pm_expense_type}/edit",
* "delete-form" = "/admin/structure/pm_expense_type/{pm_expense_type}/delete",
* "collection" = "/admin/structure/pm_expense_type"
* }
* )
*/
class ExpenseType extends ConfigEntityBundleBase implements ExpenseTypeInterface {
/**
* The Expense type ID.
*
* @var string
*/
protected $id;
/**
* The Expense type label.
*
* @var string
*/
protected $label;
}
Classes
Name | Description |
---|---|
ExpenseType | Defines the Expense type entity. |