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