You are here

public function Organization::getPrimaryPhone in CRM Core 8.3

Same name and namespace in other branches
  1. 8 modules/crm_core_contact/src/Entity/Organization.php \Drupal\crm_core_contact\Entity\Organization::getPrimaryPhone()
  2. 8.2 modules/crm_core_contact/src/Entity/Organization.php \Drupal\crm_core_contact\Entity\Organization::getPrimaryPhone()

Gets the primary phone.

Return value

\Drupal\Core\Field\FieldItemListInterface|\Drupal\Core\TypedData\TypedDataInterface The phone property object.

File

modules/crm_core_contact/src/Entity/Organization.php, line 148

Class

Organization
CRM Organization Entity Class.

Namespace

Drupal\crm_core_contact\Entity

Code

public function getPrimaryPhone() {
  return $this
    ->getPrimaryField('phone');
}