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