Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
CrmCaseType
n/a
0 / 0
n/a
0 / 0
0
n/a
0 / 0
1<?php
2
3namespace Drupal\crm_case\Entity;
4
5use Drupal\Core\Config\Entity\ConfigEntityBundleBase;
6
7/**
8 * Defines the Crm Case type configuration entity.
9 *
10 * @ConfigEntityType(
11 *   id = "crm_case_type",
12 *   label = @Translation("Crm Case type"),
13 *   label_collection = @Translation("Crm Case types"),
14 *   label_singular = @Translation("crm case type"),
15 *   label_plural = @Translation("crm cases types"),
16 *   label_count = @PluralTranslation(
17 *     singular = "@count crm cases type",
18 *     plural = "@count crm cases types",
19 *   ),
20 *   handlers = {
21 *     "form" = {
22 *       "add" = "Drupal\crm_case\Form\CrmCaseTypeForm",
23 *       "edit" = "Drupal\crm_case\Form\CrmCaseTypeForm",
24 *       "delete" = "Drupal\Core\Entity\EntityDeleteForm",
25 *     },
26 *     "list_builder" = "Drupal\crm_case\CrmCaseTypeListBuilder",
27 *     "route_provider" = {
28 *       "html" = "Drupal\Core\Entity\Routing\AdminHtmlRouteProvider",
29 *     }
30 *   },
31 *   admin_permission = "administer crm case types",
32 *   bundle_of = "crm_case",
33 *   config_prefix = "crm_case_type",
34 *   entity_keys = {
35 *     "id" = "id",
36 *     "label" = "label",
37 *     "uuid" = "uuid"
38 *   },
39 *   links = {
40 *     "add-form" = "/admin/structure/crm_case_types/add",
41 *     "edit-form" = "/admin/structure/crm_case_types/manage/{crm_case_type}",
42 *     "delete-form" = "/admin/structure/crm_case_types/manage/{crm_case_type}/delete",
43 *     "collection" = "/admin/structure/crm_case_types"
44 *   },
45 *   config_export = {
46 *     "id",
47 *     "label",
48 *     "uuid",
49 *   }
50 * )
51 */
52class CrmCaseType extends ConfigEntityBundleBase {
53
54  /**
55   * The machine name of this crm case type.
56   *
57   * @var string
58   */
59  protected $id;
60
61  /**
62   * The human-readable name of the crm case type.
63   *
64   * @var string
65   */
66  protected $label;
67
68}