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