OrganizationType.php in Drupal PM (Project Management) 4.x
Namespace
Drupal\pm_organization\EntityFile
modules/pm_organization/src/Entity/OrganizationType.phpView source
<?php
namespace Drupal\pm_organization\Entity;
use Drupal\Core\Config\Entity\ConfigEntityBundleBase;
/**
* Defines the Organization type entity.
*
* @ConfigEntityType(
* id = "pm_organization_type",
* label = @Translation("Organization type"),
* handlers = {
* "view_builder" = "Drupal\Core\Entity\EntityViewBuilder",
* "list_builder" = "Drupal\pm_organization\OrganizationTypeListBuilder",
* "form" = {
* "add" = "Drupal\pm_organization\Form\OrganizationTypeForm",
* "edit" = "Drupal\pm_organization\Form\OrganizationTypeForm",
* "delete" = "Drupal\pm_organization\Form\OrganizationTypeDeleteForm"
* },
* "route_provider" = {
* "html" = "Drupal\pm_organization\OrganizationTypeHtmlRouteProvider",
* },
* },
* config_prefix = "pm_organization_type",
* admin_permission = "administer site configuration",
* bundle_of = "pm_organization",
* entity_keys = {
* "id" = "id",
* "label" = "label",
* "uuid" = "uuid"
* },
* links = {
* "canonical" = "/admin/structure/pm_organization_type/{pm_organization_type}",
* "add-form" = "/admin/structure/pm_organization_type/add",
* "edit-form" = "/admin/structure/pm_organization_type/{pm_organization_type}/edit",
* "delete-form" = "/admin/structure/pm_organization_type/{pm_organization_type}/delete",
* "collection" = "/admin/structure/pm_organization_type"
* }
* )
*/
class OrganizationType extends ConfigEntityBundleBase implements OrganizationTypeInterface {
/**
* The Organization type ID.
*
* @var string
*/
protected $id;
/**
* The Organization type label.
*
* @var string
*/
protected $label;
}
Classes
Name![]() |
Description |
---|---|
OrganizationType | Defines the Organization type entity. |