Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| AddressContactDetail | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| getLabelWithoutType | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Drupal\crm\Entity\ContactDetail; |
| 6 | |
| 7 | /** |
| 8 | * A bundle class for crm_contact_detail entities. |
| 9 | */ |
| 10 | class AddressContactDetail extends ContactDetailBase { |
| 11 | |
| 12 | /** |
| 13 | * {@inheritdoc} |
| 14 | */ |
| 15 | public function getLabelWithoutType(): string { |
| 16 | return $this->get('address')->first()->getString(); |
| 17 | } |
| 18 | |
| 19 | } |