Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
DetailType
n/a
0 / 0
n/a
0 / 0
0
n/a
0 / 0
1<?php
2
3namespace Drupal\crm\Entity;
4
5use Drupal\Core\Config\Entity\ConfigEntityBase;
6use Drupal\crm\CrmDetailTypeInterface;
7
8/**
9 * Defines the detail type entity type.
10 *
11 * @ConfigEntityType(
12 *   id = "crm_detail_type",
13 *   label = @Translation("Detail Type"),
14 *   label_collection = @Translation("Detail Types"),
15 *   label_singular = @Translation("detail type"),
16 *   label_plural = @Translation("detail types"),
17 *   label_count = @PluralTranslation(
18 *     singular = "@count detail type",
19 *     plural = "@count detail types",
20 *   ),
21 *   handlers = {
22 *     "list_builder" = "Drupal\crm\DetailTypeListBuilder",
23 *     "form" = {
24 *       "add" = "Drupal\crm\Form\DetailTypeForm",
25 *       "edit" = "Drupal\crm\Form\DetailTypeForm",
26 *       "delete" = "Drupal\Core\Entity\EntityDeleteForm"
27 *     }
28 *   },
29 *   config_prefix = "crm_detail_type",
30 *   admin_permission = "administer crm",
31 *   links = {
32 *     "collection" = "/admin/structure/crm/detail-type",
33 *     "add-form" = "/admin/structure/crm/detail-type/add",
34 *     "edit-form" = "/admin/structure/crm/detail-type/{crm_detail_type}",
35 *     "delete-form" = "/admin/structure/crm/detail-type/{crm_detail_type}/delete"
36 *   },
37 *   entity_keys = {
38 *     "id" = "id",
39 *     "label" = "label",
40 *     "uuid" = "uuid"
41 *   },
42 *   config_export = {
43 *     "id",
44 *     "label",
45 *     "description",
46 *     "bundles",
47 *     "negate"
48 *   }
49 * )
50 */
51class DetailType extends ConfigEntityBase implements CrmDetailTypeInterface {
52
53  /**
54   * The detail type id.
55   *
56   * @var string
57   */
58  protected $id;
59
60  /**
61   * The detail type label.
62   *
63   * @var string
64   */
65  protected $label;
66
67  /**
68   * The detail type status.
69   *
70   * @var bool
71   */
72  protected $status;
73
74  /**
75   * The crm_detail_type description.
76   *
77   * @var string
78   */
79  protected $description;
80
81  /**
82   * The bundles associated with this detail type.
83   *
84   * @var array
85   */
86  protected $bundles;
87
88  /**
89   * The negate condition for this detail type.
90   *
91   * @var bool
92   */
93  protected $negate;
94
95}