Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
PhoneType
n/a
0 / 0
n/a
0 / 0
0
n/a
0 / 0
1<?php
2
3namespace Drupal\crm_field\Entity;
4
5use Drupal\Core\Config\Entity\ConfigEntityBase;
6use Drupal\crm_field\CrmPhoneTypeInterface;
7
8/**
9 * Defines the phone type entity type.
10 *
11 * @ConfigEntityType(
12 *   id = "crm_phone_type",
13 *   label = @Translation("Phone Type"),
14 *   label_collection = @Translation("Phone Types"),
15 *   label_singular = @Translation("phone type"),
16 *   label_plural = @Translation("phone types"),
17 *   label_count = @PluralTranslation(
18 *     singular = "@count phone type",
19 *     plural = "@count phone types",
20 *   ),
21 *   handlers = {
22 *     "list_builder" = "Drupal\crm_field\PhoneTypeListBuilder",
23 *     "form" = {
24 *       "add" = "Drupal\crm_field\Form\PhoneTypeForm",
25 *       "edit" = "Drupal\crm_field\Form\PhoneTypeForm",
26 *       "delete" = "Drupal\Core\Entity\EntityDeleteForm"
27 *     }
28 *   },
29 *   config_prefix = "crm_phone_type",
30 *   admin_permission = "administer crm_phone_type",
31 *   links = {
32 *     "collection" = "/admin/structure/crm-phone-type",
33 *     "add-form" = "/admin/structure/crm-phone-type/add",
34 *     "edit-form" = "/admin/structure/crm-phone-type/{crm_phone_type}",
35 *     "delete-form" = "/admin/structure/crm-phone-type/{crm_phone_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 *   }
47 * )
48 */
49class PhoneType extends ConfigEntityBase implements CrmPhoneTypeInterface {
50
51  /**
52   * The phone type ID.
53   *
54   * @var string
55   */
56  protected $id;
57
58  /**
59   * The phone type label.
60   *
61   * @var string
62   */
63  protected $label;
64
65  /**
66   * The phone type status.
67   *
68   * @var bool
69   */
70  protected $status;
71
72  /**
73   * The crm_phone_type description.
74   *
75   * @var string
76   */
77  protected $description;
78
79}