Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace Drupal\crm; |
6 | |
7 | use Drupal\Core\Config\Entity\ConfigEntityInterface; |
8 | use Drupal\Core\Entity\RevisionableEntityBundleInterface; |
9 | use Drupal\Core\Entity\EntityDescriptionInterface; |
10 | |
11 | /** |
12 | * Interface for CRM contact type entities. |
13 | */ |
14 | interface CrmContactTypeInterface extends ConfigEntityInterface, RevisionableEntityBundleInterface, EntityDescriptionInterface { |
15 | |
16 | /** |
17 | * Determines whether the contact detail type is locked. |
18 | * |
19 | * @return string|false |
20 | * The module name that locks the type or FALSE. |
21 | */ |
22 | public function isLocked(); |
23 | |
24 | /** |
25 | * Sets whether a new revision should be created by default. |
26 | * |
27 | * @param bool $new_revision |
28 | * TRUE if a new revision should be created by default. |
29 | */ |
30 | public function setNewRevision($new_revision); |
31 | |
32 | /** |
33 | * Gets the description. |
34 | * |
35 | * @return string |
36 | * The description of this contact detail type. |
37 | */ |
38 | public function getDescription(); |
39 | |
40 | } |